mirror of
https://github.com/uberhalit/SekiroFpsUnlockAndMore.git
synced 2026-06-13 09:57:55 +00:00
Made use of the SettingsService to save LogStats checkbox state
This commit is contained in:
commit
2de17f5681
3 changed files with 10 additions and 5 deletions
|
|
@ -147,6 +147,7 @@ namespace SekiroFpsUnlockAndMore
|
|||
this.tbGameSpeed.Text = _settingsService.settings.tbGameSpeed.ToString();
|
||||
this.cbPlayerSpeed.IsChecked = _settingsService.settings.cbPlayerSpeed;
|
||||
this.tbPlayerSpeed.Text = _settingsService.settings.tbPlayerSpeed.ToString();
|
||||
this.cbLogStats.IsChecked = _settingsService.settings.cbLogStats;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -168,6 +169,7 @@ namespace SekiroFpsUnlockAndMore
|
|||
_settingsService.settings.tbGameSpeed = Convert.ToInt32(this.tbGameSpeed.Text);
|
||||
_settingsService.settings.cbPlayerSpeed = this.cbPlayerSpeed.IsChecked == true;
|
||||
_settingsService.settings.tbPlayerSpeed = Convert.ToInt32(this.tbPlayerSpeed.Text);
|
||||
_settingsService.settings.cbLogStats = this.cbLogStats.IsChecked == true;
|
||||
_settingsService.Save();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -63,6 +63,7 @@
|
|||
<SubType>Designer</SubType>
|
||||
</ApplicationDefinition>
|
||||
<Compile Include="SettingsService.cs" />
|
||||
<Compile Include="StatViewModel.cs" />
|
||||
<Page Include="MainWindow.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
|
|
|
|||
|
|
@ -48,6 +48,8 @@ namespace SekiroFpsUnlockAndMore
|
|||
public bool cbPlayerSpeed { get; set; }
|
||||
[XmlElement]
|
||||
public int tbPlayerSpeed { get; set; }
|
||||
[XmlElement]
|
||||
public bool cbLogStats { get; set; }
|
||||
|
||||
public SettingsService() { }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue