mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-01-08 08:53:04 +00:00
Resolving failed dotnet whitespace format check
This commit is contained in:
parent
26f742c904
commit
55e6e9e946
4 changed files with 7 additions and 11 deletions
|
@ -56,7 +56,6 @@ namespace Ryujinx.UI.Windows
|
|||
[GUI] RadioButton _hideCursorNever;
|
||||
[GUI] RadioButton _hideCursorOnIdle;
|
||||
[GUI] RadioButton _hideCursorAlways;
|
||||
[GUI] Entry _cursorHideIdleTime;
|
||||
[GUI] CheckButton _vSyncToggle;
|
||||
[GUI] CheckButton _shaderCacheToggle;
|
||||
[GUI] CheckButton _textureRecompressionToggle;
|
||||
|
@ -233,7 +232,6 @@ namespace Ryujinx.UI.Windows
|
|||
|
||||
switch (ConfigurationState.Instance.HideCursor.Value)
|
||||
{
|
||||
|
||||
case HideCursorMode.Never:
|
||||
_hideCursorNever.Click();
|
||||
break;
|
||||
|
@ -243,7 +241,6 @@ namespace Ryujinx.UI.Windows
|
|||
case HideCursorMode.Always:
|
||||
_hideCursorAlways.Click();
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
if (ConfigurationState.Instance.Graphics.EnableVsync)
|
||||
|
@ -643,7 +640,6 @@ namespace Ryujinx.UI.Windows
|
|||
ConfigurationState.Instance.System.IgnoreMissingServices.Value = _ignoreToggle.Active;
|
||||
ConfigurationState.Instance.Hid.EnableKeyboard.Value = _directKeyboardAccess.Active;
|
||||
ConfigurationState.Instance.Hid.EnableMouse.Value = _directMouseAccess.Active;
|
||||
ConfigurationState.Instance.CursorHideIdleTime.Value = int.Parse(_cursorHideIdleTime.Text);
|
||||
ConfigurationState.Instance.UI.EnableCustomTheme.Value = _custThemeToggle.Active;
|
||||
ConfigurationState.Instance.System.Language.Value = Enum.Parse<Language>(_systemLanguageSelect.ActiveId);
|
||||
ConfigurationState.Instance.System.Region.Value = Enum.Parse<Common.Configuration.System.Region>(_systemRegionSelect.ActiveId);
|
||||
|
@ -848,4 +844,4 @@ namespace Ryujinx.UI.Windows
|
|||
Dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -168,9 +168,9 @@ namespace Ryujinx.UI.Common.Configuration
|
|||
public HideCursorMode HideCursor { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Amount of seconds needed by the mouse to be spent idle for cursor to hide.
|
||||
/// Amount of seconds needed to be spent idle to hide cursor
|
||||
/// </summary>
|
||||
public int CursorHideIdleTime { get; set; }
|
||||
public int CursorHideIdleTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Enables or disables Vertical Sync
|
||||
|
|
|
@ -634,7 +634,7 @@ namespace Ryujinx.UI.Common.Configuration
|
|||
/// <summary>
|
||||
/// Amount of seconds needed by the mouse to be spent idle to hide the cursor.
|
||||
/// </summary>
|
||||
public ReactiveObject<int> CursorHideIdleTime {get; private set; }
|
||||
public ReactiveObject<int> CursorHideIdleTime { get; private set; }
|
||||
|
||||
private ConfigurationState()
|
||||
{
|
||||
|
@ -1450,7 +1450,7 @@ namespace Ryujinx.UI.Common.Configuration
|
|||
configurationFileUpdated = true;
|
||||
}
|
||||
|
||||
if(configurationFileFormat.Version < 50)
|
||||
if (configurationFileFormat.Version < 50)
|
||||
{
|
||||
Ryujinx.Common.Logging.Logger.Warning?.Print(LogClass.Application, $"Outdated configuration version {configurationFileFormat.Version}, migrating to version 50.");
|
||||
|
||||
|
@ -1545,7 +1545,7 @@ namespace Ryujinx.UI.Common.Configuration
|
|||
Hid.EnableMouse.Value = configurationFileFormat.EnableMouse;
|
||||
Hid.Hotkeys.Value = configurationFileFormat.Hotkeys;
|
||||
Hid.InputConfig.Value = configurationFileFormat.InputConfig;
|
||||
|
||||
|
||||
if (Hid.InputConfig.Value == null)
|
||||
{
|
||||
Hid.InputConfig.Value = new List<InputConfig>();
|
||||
|
|
|
@ -408,7 +408,7 @@ namespace Ryujinx.Ava.UI.ViewModels
|
|||
ShowConfirmExit = config.ShowConfirmExit;
|
||||
HideCursor = (int)config.HideCursor.Value;
|
||||
CursorHideIdleTime = config.CursorHideIdleTime.Value;
|
||||
|
||||
|
||||
GameDirectories.Clear();
|
||||
GameDirectories.AddRange(config.UI.GameDirs.Value);
|
||||
|
||||
|
|
Loading…
Reference in a new issue