init sqlite connection

This commit is contained in:
yggverse 2024-09-21 20:48:12 +03:00
parent 49cb876749
commit 043661282c
3 changed files with 23 additions and 8 deletions

View file

@ -7,7 +7,9 @@ use gtk::{
Application, ApplicationWindow,
};
pub fn new(app: &Application, width: i32, height: i32) -> ApplicationWindow {
use sqlite::Connection;
pub fn new(app: &Application, db: &Connection, width: i32, height: i32) -> ApplicationWindow {
// Init browser window
let browser = ApplicationWindow::builder()
.default_width(width)