mirror of
https://github.com/an-anime-team/sleepy-launcher.git
synced 2024-11-22 21:02:44 +03:00
feat(core): fixed use of fps unlocker
This commit is contained in:
parent
4eed994648
commit
ce20f1e667
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue