1 Commits
4.0.0 ... 4.0.1

Author SHA1 Message Date
762b2f61aa Version 4.0.1
Fix updater not installing new versions
2023-01-28 23:57:51 -08:00
2 changed files with 6 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
[package]
name = "town-of-us-updater"
version = "4.0.0"
version = "4.0.1"
edition = "2021"
build = "src/build.rs"

View File

@@ -285,6 +285,10 @@ async fn _get_latest_updater_version() -> Result<(String, String), reqwest::Erro
impl AppData {
fn on_path_added(&mut self) {
if self.among_us_path.is_empty() {
return;
}
if let Some(among_us_version) =
determine_among_us_version(String::from(self.among_us_path.clone()))
{
@@ -541,11 +545,10 @@ fn main() {
launch_better_crewlink().unwrap_or(());
// let app_launcher = AppLauncher::with_window(main_window).delegate(Delegate {});
// app_launcher.launch(app_data).unwrap();
let mut native_options = eframe::NativeOptions::default();
native_options.min_window_size = Some(egui::vec2(425.0, 400.0));
native_options.initial_window_size = Some(egui::vec2(425.0, 400.0));
app_data.on_path_added();
app_data.detect_installs(); // Initial check since we only update every 10s
eframe::run_native(
title_string.as_str(),