mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
delegate specific database operations to widgets, use SQLiteCpp wrapper
This commit is contained in:
parent
35f4741a1c
commit
f98b0e55e9
16 changed files with 72 additions and 147 deletions
|
|
@ -5,8 +5,8 @@
|
|||
using namespace app;
|
||||
|
||||
Browser::Browser(
|
||||
SQLite::Database & db,
|
||||
const Glib::RefPtr<Gtk::Application> & APP
|
||||
//const std::shared_ptr<lib::Database> & db
|
||||
) {
|
||||
// Init window actions
|
||||
const auto ACTION__REFRESH = add_action(
|
||||
|
|
@ -177,6 +177,7 @@ Browser::Browser(
|
|||
);
|
||||
|
||||
browserMain = Gtk::make_managed<browser::Main>(
|
||||
db,
|
||||
ACTION__REFRESH,
|
||||
ACTION__MAIN_TAB_CLOSE_ACTIVE,
|
||||
ACTION__MAIN_TAB_CLOSE_ALL,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue