Skip to content

Commit

Permalink
Bug fix for trunk
Browse files Browse the repository at this point in the history
  • Loading branch information
basyniae committed Feb 20, 2025
1 parent 7c31980 commit 75aa581
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "voxircle"
authors = ["Basyniae"]
version = "0.1.0"
version = "1.3.2"
edition = "2021"
include = ["LICENSE-APACHE", "LICENSE-MIT", "**/*.rs", "Cargo.toml"]

Expand Down
14 changes: 5 additions & 9 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#![cfg_attr(
not(debug_assertions),
windows_subsystem = "windows"
)] // hide console window on Windows in release
// (ripped straight from the example)
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] // hide console window on Windows in release
// (ripped straight from the example)

use std::default::Default;
mod app;
Expand Down Expand Up @@ -61,20 +58,19 @@ fn main() {
)
.await;


// Remove the loading text and spinner:
if let Some(loading_text) = document.get_element_by_id("loading_text") {
match start_result {
Ok(_) => {
loading_text.remove();
}
Err(_) => {
Err(e) => {
loading_text.set_inner_html(
"<p> The app has crashed. See the developer console for details. </p>",
);
panic!("Failed to start eframe: {_:?}");
panic!("Failed to start eframe: {e:?}");
}
}
}
});
}
}

0 comments on commit 75aa581

Please sign in to comment.