diff --git a/RomRepoMgr.Settings/Settings.cs b/RomRepoMgr.Settings/Settings.cs index 2057933..ac61e9d 100644 --- a/RomRepoMgr.Settings/Settings.cs +++ b/RomRepoMgr.Settings/Settings.cs @@ -57,7 +57,7 @@ public static class Settings const string XDG_CONFIG_HOME_RESOLVED = ".config"; /// Current statistics public static SetSettings Current; - public static bool UnArUsable { get; set; } + public static bool CanDecompress { get; set; } /// Loads settings public static void LoadSettings() diff --git a/RomRepoMgr/ViewModels/SettingsViewModel.cs b/RomRepoMgr/ViewModels/SettingsViewModel.cs index f0eeb1d..d9a5856 100644 --- a/RomRepoMgr/ViewModels/SettingsViewModel.cs +++ b/RomRepoMgr/ViewModels/SettingsViewModel.cs @@ -360,7 +360,7 @@ public sealed partial class SettingsViewModel : ViewModelBase if(_unArChanged) { Settings.Settings.Current.UnArchiverPath = UnArPath; - Settings.Settings.UnArUsable = true; + Settings.Settings.CanDecompress = true; } if(_compressionChanged) Settings.Settings.Current.Compression = Compression; diff --git a/RomRepoMgr/ViewModels/SplashWindowViewModel.cs b/RomRepoMgr/ViewModels/SplashWindowViewModel.cs index 59d4b57..eaca6c4 100644 --- a/RomRepoMgr/ViewModels/SplashWindowViewModel.cs +++ b/RomRepoMgr/ViewModels/SplashWindowViewModel.cs @@ -144,7 +144,9 @@ public sealed partial class SplashWindowViewModel : ViewModelBase try { var worker = new Compression(); - Settings.Settings.UnArUsable = worker.CheckUnAr(Settings.Settings.Current.UnArchiverPath); + + Settings.Settings.CanDecompress = worker.CheckUnAr(Settings.Settings.Current.UnArchiverPath) || + Settings.Settings.Current.UseInternalDecompressor; Dispatcher.UIThread.Post(LoadDatabase); }