From ce20f1e667626e45487a2b5dae8b87b4e42c3be6 Mon Sep 17 00:00:00 2001 From: Observer KRypt0n_ Date: Sat, 15 Apr 2023 12:48:15 +0200 Subject: [PATCH] feat(core): fixed use of fps unlocker --- src/ui/preferences/enhancements.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/preferences/enhancements.rs b/src/ui/preferences/enhancements.rs index 21c7686..5371312 100644 --- a/src/ui/preferences/enhancements.rs +++ b/src/ui/preferences/enhancements.rs @@ -366,7 +366,7 @@ impl SimpleAsyncComponent for EnhancementsApp { &tr("custom") ]), - set_selected: match Fps::from_num(CONFIG.game.enhancements.fps_unlocker.config.fps.to_num()) { + set_selected: match Fps::from_num(CONFIG.game.enhancements.fps_unlocker.config.fps) { Fps::Ninety => 0, Fps::HundredTwenty => 1, Fps::HundredFourtyFour => 2, @@ -381,7 +381,7 @@ impl SimpleAsyncComponent for EnhancementsApp { connect_selected_notify => |row| { if is_ready() && row.selected() < Fps::list().len() as u32 - 1 { if let Ok(mut config) = Config::get() { - config.game.enhancements.fps_unlocker.config.fps = Fps::list()[row.selected() as usize]; + config.game.enhancements.fps_unlocker.config.fps = Fps::list()[row.selected() as usize].to_num(); Config::update(config); }