Skip to content

Commit

Permalink
Fix getting install parameter for the addons list
Browse files Browse the repository at this point in the history
  • Loading branch information
yuriiNazarenkoTine committed Jun 13, 2024
1 parent abffe44 commit 7fca84d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/src/appWindow.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ export default
},

onOpen: function (a) {
this.apiProvider.runScheduledTask('MountLoaderDisk');
//this.apiProvider.runScheduledTask('MountLoaderDisk');
SYNOCOMMUNITY.RRManager.AppWindow.superclass.onOpen.call(this, a);
},
onDestroy: function (e) {
this.apiProvider.runScheduledTask('UnMountLoaderDisk');
//this.apiProvider.runScheduledTask('UnMountLoaderDisk');
SYNOCOMMUNITY.RRManager.AppWindow.superclass.onDestroy.call(this);
}
});
8 changes: 4 additions & 4 deletions src/ui/getAddons.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def read_user_config():

def read_manifests_in_subdirs(parent_directory, userConfig, category=None):
manifests = []
# addons = userConfig.get('addons')
addons = userConfig.get('addons')
try:
subdirs = next(os.walk(parent_directory))[1]
except Exception as e:
Expand All @@ -43,7 +43,7 @@ def read_manifests_in_subdirs(parent_directory, userConfig, category=None):
with open(manifest_path, 'r') as file:
try:
manifest = yaml.safe_load(file)
#manifest['installed'] = subdir in userConfig['addons']
manifest['installed'] = subdir in addons #userConfig['addons']
# Filter by category if specified
if category == "system":
# Ensure 'system' key exists and is boolean True
Expand Down Expand Up @@ -84,8 +84,8 @@ if True: #len(user) > 0:
addons = read_manifests_in_subdirs(ADDONS_PATH,userConfig,category)
response['result'] = addons
response['userConfig'] = userConfig
#response['success'] = True
#response['total'] = len(addons)
response['success'] = True
response['total'] = len(addons)
# call function to unmount the loader by calling the following bash /usr/bin/rr-loaderdisk.sh unmountLoaderDisk
unmountLoader()
except Exception as e:
Expand Down

0 comments on commit 7fca84d

Please sign in to comment.