release: Multi-Hoster-Upload v2.0.3
This commit is contained in:
@@ -522,6 +522,21 @@ class ConfigStore {
|
||||
});
|
||||
}
|
||||
|
||||
replaceSettings(config) {
|
||||
return this._enqueueWrite(() => {
|
||||
const current = this.load();
|
||||
const globalSettings = this._clone(config.globalSettings);
|
||||
globalSettings.pendingQueue = current.globalSettings.pendingQueue ?? null;
|
||||
return this._commit({
|
||||
hosters: this._clone(config.hosters),
|
||||
hosterSettings: this._clone(config.hosterSettings),
|
||||
globalSettings,
|
||||
history: this._clone(current.history || []),
|
||||
rotationCursors: {}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
loadHistory() {
|
||||
if (this._historyMigrated) {
|
||||
return this._readHistoryFile() || [];
|
||||
|
||||
Reference in New Issue
Block a user