Browse Source

implement separated save action

CPP-GTK4
yggverse 3 months ago
parent
commit
55524221ff
  1. 7
      src/app/browser/main/tab.cpp
  2. 2
      src/app/browser/main/tab.hpp

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

@ -107,7 +107,7 @@ Tab::Tab(
); );
} }
void Tab::shutdown() void Tab::save()
{ {
char * error; // @TODO char * error; // @TODO
@ -154,6 +154,11 @@ void Tab::shutdown()
&error &error
); );
} }
}
void Tab::shutdown()
{
save();
// @TODO shutdown children components // @TODO shutdown children components
} }

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

@ -94,6 +94,8 @@ namespace app::browser::main
const int & PAGE_NUMBER const int & PAGE_NUMBER
); );
void save();
void shutdown(); void shutdown();
// Getters // Getters

Loading…
Cancel
Save