mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 01:25:27 +00:00
require db on browser construct
This commit is contained in:
parent
c477c70c56
commit
4b2fe64b08
3 changed files with 16 additions and 8 deletions
13
src/main.cpp
13
src/main.cpp
|
|
@ -6,11 +6,6 @@ int main(
|
|||
int argc,
|
||||
char * argv[]
|
||||
) {
|
||||
// Init profile
|
||||
auto database = lib::Database(
|
||||
"database.sqlite3"
|
||||
);
|
||||
|
||||
// Init app
|
||||
auto app = Gtk::Application::create(
|
||||
"io.github.yggverse.Yoda"
|
||||
|
|
@ -31,10 +26,16 @@ int main(
|
|||
"<Primary>q"
|
||||
);
|
||||
|
||||
// Init profile
|
||||
auto db = lib::Database(
|
||||
"database.sqlite3"
|
||||
);
|
||||
|
||||
// Launch browser component
|
||||
return app->make_window_and_run<app::Browser>(
|
||||
argc,
|
||||
argv,
|
||||
app
|
||||
app,
|
||||
db
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue