mirror of
https://git.ryujinx.app/kenji-nx/ryujinx.git
synced 2025-12-15 01:37:03 +00:00
Created bool to store if the "Avilable Update" should be hidden on startup (--hide-updates)
fixes #263
This commit is contained in:
parent
13db6067d2
commit
554e0d1141
2 changed files with 5 additions and 1 deletions
|
|
@ -16,6 +16,7 @@ namespace Ryujinx.UI.Common.Helper
|
||||||
public static string LaunchPathArg { get; private set; }
|
public static string LaunchPathArg { get; private set; }
|
||||||
public static string LaunchApplicationId { get; private set; }
|
public static string LaunchApplicationId { get; private set; }
|
||||||
public static bool StartFullscreenArg { get; private set; }
|
public static bool StartFullscreenArg { get; private set; }
|
||||||
|
public static bool HideAvailableUpdates { get; private set; }
|
||||||
|
|
||||||
public static void ParseArguments(string[] args)
|
public static void ParseArguments(string[] args)
|
||||||
{
|
{
|
||||||
|
|
@ -93,6 +94,9 @@ namespace Ryujinx.UI.Common.Helper
|
||||||
|
|
||||||
OverrideHideCursor = args[++i];
|
OverrideHideCursor = args[++i];
|
||||||
break;
|
break;
|
||||||
|
case "--hide-updates":
|
||||||
|
HideAvailableUpdates = true;
|
||||||
|
break;
|
||||||
case "--software-gui":
|
case "--software-gui":
|
||||||
OverrideHardwareAcceleration = false;
|
OverrideHardwareAcceleration = false;
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
|
|
@ -361,7 +361,7 @@ namespace Ryujinx.Ava.UI.Windows
|
||||||
await Dispatcher.UIThread.InvokeAsync(async () => await UserErrorDialog.ShowUserErrorDialog(UserError.NoKeys));
|
await Dispatcher.UIThread.InvokeAsync(async () => await UserErrorDialog.ShowUserErrorDialog(UserError.NoKeys));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ConfigurationState.Instance.CheckUpdatesOnStart.Value && Updater.CanUpdate(false))
|
if (ConfigurationState.Instance.CheckUpdatesOnStart.Value && !CommandLineState.HideAvailableUpdates && Updater.CanUpdate(false))
|
||||||
{
|
{
|
||||||
await Updater.BeginParse(this, false).ContinueWith(task =>
|
await Updater.BeginParse(this, false).ContinueWith(task =>
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue