mirror of
https://github.com/claunia/romrepomgr.git
synced 2025-12-16 19:24:51 +00:00
Allow to read archives if no unar, but internal decompressor is allowed.
This commit is contained in:
@@ -57,7 +57,7 @@ public static class Settings
|
|||||||
const string XDG_CONFIG_HOME_RESOLVED = ".config";
|
const string XDG_CONFIG_HOME_RESOLVED = ".config";
|
||||||
/// <summary>Current statistics</summary>
|
/// <summary>Current statistics</summary>
|
||||||
public static SetSettings Current;
|
public static SetSettings Current;
|
||||||
public static bool UnArUsable { get; set; }
|
public static bool CanDecompress { get; set; }
|
||||||
|
|
||||||
/// <summary>Loads settings</summary>
|
/// <summary>Loads settings</summary>
|
||||||
public static void LoadSettings()
|
public static void LoadSettings()
|
||||||
|
|||||||
@@ -360,7 +360,7 @@ public sealed partial class SettingsViewModel : ViewModelBase
|
|||||||
if(_unArChanged)
|
if(_unArChanged)
|
||||||
{
|
{
|
||||||
Settings.Settings.Current.UnArchiverPath = UnArPath;
|
Settings.Settings.Current.UnArchiverPath = UnArPath;
|
||||||
Settings.Settings.UnArUsable = true;
|
Settings.Settings.CanDecompress = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(_compressionChanged) Settings.Settings.Current.Compression = Compression;
|
if(_compressionChanged) Settings.Settings.Current.Compression = Compression;
|
||||||
|
|||||||
@@ -144,7 +144,9 @@ public sealed partial class SplashWindowViewModel : ViewModelBase
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
var worker = new Compression();
|
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);
|
Dispatcher.UIThread.Post(LoadDatabase);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user