mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2026-05-20 12:15:46 +00:00
rename NotificationHelper to RyujinxNotificationManager,
rename instance method names. Additionally clarified what the math is in the notification manager margin parameter.
This commit is contained in:
@@ -79,14 +79,14 @@ namespace Ryujinx.Ava.UI.SetupWizard.Pages
|
||||
SystemVersion installedFwVer = RyujinxApp.MainWindow.ContentManager.GetCurrentFirmwareVersion();
|
||||
if (installedFwVer != null)
|
||||
{
|
||||
Notifications.NotifyInformation(
|
||||
NotificationManager.Information(
|
||||
"Firmware installed",
|
||||
$"Installed firmware version {installedFwVer.VersionString}."
|
||||
);
|
||||
}
|
||||
else
|
||||
{
|
||||
Notifications.NotifyError(
|
||||
NotificationManager.Error(
|
||||
"Firmware not installed",
|
||||
$"It seems some error occurred when trying to install the firmware at path '{FirmwareSourcePath}'." +
|
||||
"\nDid that folder contain a firmware dump?"
|
||||
@@ -107,7 +107,7 @@ namespace Ryujinx.Ava.UI.SetupWizard.Pages
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Notifications.NotifyError(e.Message, waitingExit: true);
|
||||
NotificationManager.Error(e.Message, waitingExit: true);
|
||||
return Result.Fail;
|
||||
}
|
||||
|
||||
|
||||
@@ -55,18 +55,18 @@ namespace Ryujinx.Ava.UI.SetupWizard.Pages
|
||||
|
||||
ContentManager.InstallKeys(directory, systemDirectory);
|
||||
|
||||
Notifications.NotifyInformation(
|
||||
NotificationManager.Information(
|
||||
title: LocaleManager.Instance[LocaleKeys.RyujinxInfo],
|
||||
text: LocaleManager.Instance[LocaleKeys.DialogKeysInstallerKeysInstallSuccessMessage]);
|
||||
}
|
||||
catch (InvalidFirmwarePackageException ifwpe)
|
||||
{
|
||||
Notifications.NotifyError(ifwpe.Message, waitingExit: true);
|
||||
NotificationManager.Error(ifwpe.Message, waitingExit: true);
|
||||
return Result.Failure(NoKeysFoundInFolder.Shared);
|
||||
}
|
||||
catch (MissingKeyException ex)
|
||||
{
|
||||
Notifications.NotifyError(ex.ToString(), waitingExit: true);
|
||||
NotificationManager.Error(ex.ToString(), waitingExit: true);
|
||||
return Result.Failure(NoKeysFoundInFolder.Shared);
|
||||
}
|
||||
catch (Exception ex)
|
||||
@@ -78,7 +78,7 @@ namespace Ryujinx.Ava.UI.SetupWizard.Pages
|
||||
LocaleKeys.DialogKeysInstallerKeysNotFoundErrorMessage, directory);
|
||||
}
|
||||
|
||||
Notifications.NotifyError(message, waitingExit: true);
|
||||
NotificationManager.Error(message, waitingExit: true);
|
||||
|
||||
return Result.Failure(new MessageError(message));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user