From 830d1f097d62ea4888d2d405f3c74b54948889aa Mon Sep 17 00:00:00 2001 From: bobhope Date: Sat, 11 Sep 2021 14:59:11 -0400 Subject: [PATCH] Remove file error popup (#2547) * Added check to detect if application file is more than zero bytes long * Removed file error popup * Removed unnecessary usings * Added empty lines --- Ryujinx/Ui/App/ApplicationLibrary.cs | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/Ryujinx/Ui/App/ApplicationLibrary.cs b/Ryujinx/Ui/App/ApplicationLibrary.cs index dcf49204b3..31952fba1b 100644 --- a/Ryujinx/Ui/App/ApplicationLibrary.cs +++ b/Ryujinx/Ui/App/ApplicationLibrary.cs @@ -11,7 +11,6 @@ using Ryujinx.Configuration.System; using Ryujinx.HLE.FileSystem; using Ryujinx.HLE.HOS; using Ryujinx.HLE.Loaders.Npdm; -using Ryujinx.Ui.Widgets; using System; using System.Collections.Generic; using System.IO; @@ -36,7 +35,6 @@ namespace Ryujinx.Ui.App private VirtualFileSystem _virtualFileSystem; private Language _desiredTitleLanguage; - private bool _loadingError; public ApplicationLibrary(VirtualFileSystem virtualFileSystem) { @@ -117,7 +115,6 @@ namespace Ryujinx.Ui.App int numApplicationsFound = 0; int numApplicationsLoaded = 0; - _loadingError = false; _desiredTitleLanguage = desiredTitleLanguage; // Builds the applications list with paths to found applications @@ -301,7 +298,6 @@ namespace Ryujinx.Ui.App Logger.Warning?.Print(LogClass.Application, $"The file encountered was not of a valid type. File: '{applicationPath}' Error: {exception}"); numApplicationsFound--; - _loadingError = true; continue; } @@ -382,7 +378,6 @@ namespace Ryujinx.Ui.App Logger.Warning?.Print(LogClass.Application, $"The file encountered was not of a valid type. Errored File: {applicationPath}"); numApplicationsFound--; - _loadingError = true; continue; } @@ -403,7 +398,6 @@ namespace Ryujinx.Ui.App Logger.Warning?.Print(LogClass.Application, exception.Message); numApplicationsFound--; - _loadingError = true; continue; } @@ -452,14 +446,6 @@ namespace Ryujinx.Ui.App NumAppsFound = numApplicationsFound, NumAppsLoaded = numApplicationsLoaded }); - - if (_loadingError) - { - Gtk.Application.Invoke(delegate - { - GtkDialog.CreateErrorDialog("One or more files encountered could not be loaded, check logs for more info."); - }); - } } protected void OnApplicationAdded(ApplicationAddedEventArgs e)