Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/app/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ impl Application {
.build()
}

pub async fn run(&self, args: Vec<String>) -> ExitCode {
pub fn run(&self, args: Vec<String>) -> ExitCode {
let mut program = std::env::args().take(1).collect_vec();
program.extend(args);
self.run_with_args(&program)
Expand Down
3 changes: 2 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,6 @@ fn main() -> ExitCode {
app.set_property("decorations", !args.no_window_decorations);

let runtime = Runtime::new().expect("Failed to create Tokio runtime");
runtime.block_on(app.run(args.trailing))
let _guard = runtime.enter();
app.run(args.trailing)
}