Replace shorthand ifs

This commit is contained in:
Luke Warner 2024-10-28 20:34:23 -04:00
parent e0cc2a6eed
commit 434296966e
3 changed files with 3 additions and 3 deletions

View File

@ -1552,7 +1552,7 @@ namespace Ryujinx.UI.Common.Configuration
{ {
Ryujinx.Common.Logging.Logger.Warning?.Print(LogClass.Application, $"Outdated configuration version {configurationFileFormat.Version}, migrating to version 56."); Ryujinx.Common.Logging.Logger.Warning?.Print(LogClass.Application, $"Outdated configuration version {configurationFileFormat.Version}, migrating to version 56.");
configurationFileFormat.ShowTitleBar = (OperatingSystem.IsWindows()) ? false : true; configurationFileFormat.ShowTitleBar = !OperatingSystem.IsWindows();
configurationFileUpdated = true; configurationFileUpdated = true;
} }

View File

@ -17,7 +17,7 @@ namespace Ryujinx.Ava.UI.Views.Settings
public SettingsUiView() public SettingsUiView()
{ {
InitializeComponent(); InitializeComponent();
ShowTitleBarBox.IsVisible = (OperatingSystem.IsWindows()) ? true : false; ShowTitleBarBox.IsVisible = OperatingSystem.IsWindows();
} }
private async void AddGameDirButton_OnClick(object sender, RoutedEventArgs e) private async void AddGameDirButton_OnClick(object sender, RoutedEventArgs e)

View File

@ -82,7 +82,7 @@ namespace Ryujinx.Ava.UI.Windows
ViewModel.Title = App.FormatTitle(); ViewModel.Title = App.FormatTitle();
TitleBar.ExtendsContentIntoTitleBar = (ConfigurationState.Instance.ShowTitleBar) ? false : true; TitleBar.ExtendsContentIntoTitleBar = !ConfigurationState.Instance.ShowTitleBar;
TitleBar.TitleBarHitTestType = TitleBarHitTestType.Complex; TitleBar.TitleBarHitTestType = TitleBarHitTestType.Complex;
// NOTE: Height of MenuBar and StatusBar is not usable here, since it would still be 0 at this point. // NOTE: Height of MenuBar and StatusBar is not usable here, since it would still be 0 at this point.