From 75aa581d6c4611e0be572f1a6ce3d2e254d931b0 Mon Sep 17 00:00:00 2001 From: Iris <152874900+basyniae@users.noreply.github.com> Date: Thu, 20 Feb 2025 09:48:40 +0100 Subject: [PATCH] Bug fix for trunk --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/main.rs | 14 +++++--------- 3 files changed, 7 insertions(+), 11 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 59f1830..220aa0b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2938,7 +2938,7 @@ checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" [[package]] name = "voxircle" -version = "0.1.0" +version = "1.3.2" dependencies = [ "eframe", "egui", diff --git a/Cargo.toml b/Cargo.toml index 076b5a3..696b53a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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"] diff --git a/src/main.rs b/src/main.rs index c89a1a9..4b8685e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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; @@ -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( "
The app has crashed. See the developer console for details.
", ); - panic!("Failed to start eframe: {_:?}"); + panic!("Failed to start eframe: {e:?}"); } } } }); -} \ No newline at end of file +}