mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 10:50:00 +00:00
Rust: Make new(), run() and show() report errors from the backend
Fixes #2198
This commit is contained in:
parent
e8ee468cc6
commit
6889dfa5f5
254 changed files with 519 additions and 398 deletions
|
@ -76,9 +76,9 @@ pub fn main() {
|
|||
#[cfg(all(debug_assertions, target_arch = "wasm32"))]
|
||||
console_error_panic_hook::set_once();
|
||||
|
||||
let main_window = MainWindow::new();
|
||||
let main_window = MainWindow::new().unwrap();
|
||||
|
||||
main_window.on_render_plot(render_plot);
|
||||
|
||||
main_window.run();
|
||||
main_window.run().unwrap();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue