mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
require profile ownership for app
This commit is contained in:
parent
3cc6b9a76a
commit
f150e716b9
2 changed files with 4 additions and 4 deletions
|
|
@ -7,7 +7,6 @@ use profile::Profile;
|
|||
|
||||
fn main() -> ExitCode {
|
||||
use app::App;
|
||||
use std::rc::Rc;
|
||||
|
||||
if let Err(e) = gtk::init() {
|
||||
eprintln!("Failed to initialize GTK: {e}");
|
||||
|
|
@ -15,7 +14,7 @@ fn main() -> ExitCode {
|
|||
}
|
||||
|
||||
match Profile::init() {
|
||||
Ok(profile) => match App::build(&Rc::new(profile)).run() {
|
||||
Ok(profile) => match App::build(profile).run() {
|
||||
Ok(app) => return app,
|
||||
Err(e) => eprintln!("Failed to initialize application: {e}"),
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue