gui: fix incorrect settings loading
This commit is contained in:
@@ -43,6 +43,12 @@ public class JadxSettings extends JadxCLIArgs {
|
||||
JadxSettingsAdapter.store(this);
|
||||
}
|
||||
|
||||
public void fixOnLoad() {
|
||||
if (threadsCount <= 0) {
|
||||
threadsCount = DEFAULT_THREADS_COUNT;
|
||||
}
|
||||
}
|
||||
|
||||
public String getLastOpenFilePath() {
|
||||
return lastOpenFilePath;
|
||||
}
|
||||
|
||||
@@ -50,6 +50,7 @@ public class JadxSettingsAdapter {
|
||||
return new JadxSettings();
|
||||
}
|
||||
LOG.debug("Loaded settings: {}", makeString(settings));
|
||||
settings.fixOnLoad();
|
||||
return settings;
|
||||
} catch (Exception e) {
|
||||
LOG.error("Error load settings", e);
|
||||
|
||||
Reference in New Issue
Block a user