2 Commits

Author SHA1 Message Date
972c310673 Update 'README.md' 2022-09-26 14:47:01 -07:00
90b703ee30 Bump to 3.0.0 2022-09-26 08:15:17 -07:00
4 changed files with 5 additions and 13 deletions

View File

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

View File

@@ -7,6 +7,7 @@ A tool to automatically install the **Town of Us R** mod for **Among Us**.
- Caches old builds to allow you to continue playing the mod in case of a breaking Among Us update - Caches old builds to allow you to continue playing the mod in case of a breaking Among Us update
- GUI to select which build to play - GUI to select which build to play
- Auto-detection of Among Us install directory - Auto-detection of Among Us install directory
- Auto-launch of BetterCrewLink if installed
# Contributing # Contributing

View File

@@ -128,11 +128,6 @@ impl Widget<AppData> for AmongUsLauncherWidget {
self.build_widget(data); self.build_widget(data);
ctx.children_changed(); ctx.children_changed();
} }
Event::KeyDown(evt) => {
if evt.code == druid::Code::F5 {
ctx.submit_command(ATTEMPT_INSTALL);
}
}
_ => { _ => {
self.root.event(ctx, event, data, env); self.root.event(ctx, event, data, env);
} }
@@ -146,7 +141,7 @@ impl Widget<AppData> for AmongUsLauncherWidget {
self.root.update(ctx, data, env); self.root.update(ctx, data, env);
if old_data.among_us_path.is_empty() && !data.among_us_path.is_empty() { if old_data.among_us_path.is_empty() && !data.among_us_path.is_empty() {
ctx.submit_command(ATTEMPT_INSTALL); ctx.submit_command(ATTEMPT_INSTALL);
// println!("Detect Stuff"); println!("Detect Stuff");
} }
// println!("Update!"); // println!("Update!");
self.build_widget(data); self.build_widget(data);

View File

@@ -121,13 +121,10 @@ impl AppDelegate<AppData> for Delegate {
fn window_added( fn window_added(
&mut self, &mut self,
_id: WindowId, _id: WindowId,
data: &mut AppData, _data: &mut AppData,
_env: &Env, _env: &Env,
ctx: &mut DelegateCtx, _ctx: &mut DelegateCtx,
) { ) {
if !data.among_us_path.is_empty() {
ctx.submit_command(ATTEMPT_INSTALL);
}
} }
fn command( fn command(
&mut self, &mut self,
@@ -231,7 +228,6 @@ impl AppDelegate<AppData> for Delegate {
); );
} }
} }
data.initialized = !data.initialized;
return Handled::Yes; return Handled::Yes;
} }