Skip to content

Commit 7fca84d

Browse files
Fix getting install parameter for the addons list
1 parent abffe44 commit 7fca84d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/src/appWindow.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ export default
6565
},
6666

6767
onOpen: function (a) {
68-
this.apiProvider.runScheduledTask('MountLoaderDisk');
68+
//this.apiProvider.runScheduledTask('MountLoaderDisk');
6969
SYNOCOMMUNITY.RRManager.AppWindow.superclass.onOpen.call(this, a);
7070
},
7171
onDestroy: function (e) {
72-
this.apiProvider.runScheduledTask('UnMountLoaderDisk');
72+
//this.apiProvider.runScheduledTask('UnMountLoaderDisk');
7373
SYNOCOMMUNITY.RRManager.AppWindow.superclass.onDestroy.call(this);
7474
}
7575
});

src/ui/getAddons.cgi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def read_user_config():
2929

3030
def read_manifests_in_subdirs(parent_directory, userConfig, category=None):
3131
manifests = []
32-
# addons = userConfig.get('addons')
32+
addons = userConfig.get('addons')
3333
try:
3434
subdirs = next(os.walk(parent_directory))[1]
3535
except Exception as e:
@@ -43,7 +43,7 @@ def read_manifests_in_subdirs(parent_directory, userConfig, category=None):
4343
with open(manifest_path, 'r') as file:
4444
try:
4545
manifest = yaml.safe_load(file)
46-
#manifest['installed'] = subdir in userConfig['addons']
46+
manifest['installed'] = subdir in addons #userConfig['addons']
4747
# Filter by category if specified
4848
if category == "system":
4949
# Ensure 'system' key exists and is boolean True
@@ -84,8 +84,8 @@ if True: #len(user) > 0:
8484
addons = read_manifests_in_subdirs(ADDONS_PATH,userConfig,category)
8585
response['result'] = addons
8686
response['userConfig'] = userConfig
87-
#response['success'] = True
88-
#response['total'] = len(addons)
87+
response['success'] = True
88+
response['total'] = len(addons)
8989
# call function to unmount the loader by calling the following bash /usr/bin/rr-loaderdisk.sh unmountLoaderDisk
9090
unmountLoader()
9191
except Exception as e:

0 commit comments

Comments
 (0)