Browse Source

fix active tab close

CPP-GTK4
yggverse 1 month ago
parent
commit
d0d9b29285
  1. 2
      src/app/browser/main.cpp
  2. 2
      src/app/browser/main/tab.cpp

2
src/app/browser/main.cpp

@ -45,7 +45,7 @@ void Main::tab_append() @@ -45,7 +45,7 @@ void Main::tab_append()
void Main::tab_close()
{
tab->close(
-1 // active
tab->get_current_page() // active
);
};

2
src/app/browser/main/tab.cpp

@ -64,7 +64,7 @@ void Tab::close_all() @@ -64,7 +64,7 @@ void Tab::close_all()
while (0 <= get_current_page())
{
close(
-1 // active
-1 // last
);
}
}
Loading…
Cancel
Save