mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-02-11 02:44:15 +00:00
enshort namespace
This commit is contained in:
parent
2a7d7c5c46
commit
08db41b927
@ -1,10 +1,10 @@
|
|||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
|
|
||||||
pub struct Database {
|
pub struct Browser {
|
||||||
pub connection: Arc<sqlite::Connection>,
|
pub connection: Arc<sqlite::Connection>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Database {
|
impl Browser {
|
||||||
fn init(&self) {}
|
fn init(&self) {}
|
||||||
fn save(&self) {}
|
fn save(&self) {}
|
||||||
fn restore(&self) {}
|
fn restore(&self) {}
|
@ -1,4 +1,4 @@
|
|||||||
mod database;
|
mod db;
|
||||||
mod header;
|
mod header;
|
||||||
mod main;
|
mod main;
|
||||||
|
|
||||||
@ -11,7 +11,7 @@ use gtk::{
|
|||||||
};
|
};
|
||||||
|
|
||||||
pub struct Browser {
|
pub struct Browser {
|
||||||
database: database::Database,
|
db: db::Browser,
|
||||||
pub widget: Arc<gtk::ApplicationWindow>,
|
pub widget: Arc<gtk::ApplicationWindow>,
|
||||||
pub header: Arc<header::Header>,
|
pub header: Arc<header::Header>,
|
||||||
pub main: Arc<main::Main>,
|
pub main: Arc<main::Main>,
|
||||||
@ -64,7 +64,7 @@ pub fn new(
|
|||||||
|
|
||||||
// Done
|
// Done
|
||||||
Browser {
|
Browser {
|
||||||
database: database::Database { connection },
|
db: db::Browser { connection },
|
||||||
widget,
|
widget,
|
||||||
header,
|
header,
|
||||||
main,
|
main,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user