Skip to content

Commit

Permalink
Fix #77
Browse files Browse the repository at this point in the history
  • Loading branch information
577fkj committed Feb 7, 2025
1 parent a4c1b19 commit 617eaae
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/src/tabs/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,16 @@ export default
},
};
return Ext.apply(t, e), t;
}, _getRrConfig: function () {
}, _getRrConfig: async function () {
const rrConfigJson = localStorage.getItem('rrConfig');
return JSON.parse(rrConfigJson);
if (rrConfigJson) {
return JSON.parse(rrConfigJson);
}
return await self.getConf();
},
__checkDownloadFolder: function (callback) {
__checkDownloadFolder: async function (callback) {
var self = this;
const rrConfig = this._getRrConfig();
const rrConfig = await this._getRrConfig();
const config = rrConfig.rr_manager_config;
self.apiProvider.getSharesList().then(x => {
var shareName = `/${config['SHARE_NAME']}`;
Expand Down Expand Up @@ -285,7 +288,7 @@ export default
var isModernDSM = systemInfo.version_string.includes("7.2.2");
self.apiProvider.setIsModernDSM(isModernDSM);

self.__checkDownloadFolder(self.__checkRequiredTasks.bind(self));
await self.__checkDownloadFolder(self.__checkRequiredTasks.bind(self));
if (systemInfo && packages) {
self.rrCheckVersion = rrCheckVersion;
//TODO: implement localization
Expand Down

0 comments on commit 617eaae

Please sign in to comment.