Browse Source

fix active tab close

CPP-GTK4
yggverse 4 months 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()
void Main::tab_close() void Main::tab_close()
{ {
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()
while (0 <= get_current_page()) while (0 <= get_current_page())
{ {
close( close(
-1 // active -1 // last
); );
} }
} }
Loading…
Cancel
Save