:3
This commit is contained in:
7
src/app_main.rs
Normal file
7
src/app_main.rs
Normal file
@@ -0,0 +1,7 @@
|
||||
slint::include_modules!();
|
||||
|
||||
pub fn app() -> Result<App, slint::PlatformError> {
|
||||
let app = App::new()?;
|
||||
app.run()?;
|
||||
Ok(app)
|
||||
}
|
||||
1
src/lib.rs
Normal file
1
src/lib.rs
Normal file
@@ -0,0 +1 @@
|
||||
pub mod app_main;
|
||||
@@ -1,3 +1,4 @@
|
||||
fn main() {
|
||||
println!("Hello, world!");
|
||||
fn main() -> anyhow::Result<()> {
|
||||
tgp::app_main::app()?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user