fix a bug with metadata refresh, clean up and finalize permissions gui

This commit is contained in:
GloriousEggroll 2025-04-08 21:39:19 -06:00
parent 7653eaadad
commit ccd6939141
5 changed files with 81314 additions and 86897 deletions

View file

@ -41,6 +41,8 @@ DONE:
- Add per-app permission management GUI
- Add global permission management GUI
- Add Package information page/section.
- Cleanup permissions GUI
- Add permissions override viewing inside per-app permissions view.
TODO:
- Update management GUI (individual apps can already be updated)

File diff suppressed because one or more lines are too long

View file

@ -795,6 +795,8 @@ class AppstreamSearcher:
else:
self._process_system_category(searcher, category, system)
current_category += 1
self.save_collections_data()
if self._should_refresh():
self.update_subcategories_data()
@ -802,6 +804,10 @@ class AppstreamSearcher:
def _process_category(self, searcher, category, current_category, total_categories):
"""Process a single category and retrieve its metadata."""
if self._should_refresh():
self._refresh_category_data(searcher, category)
json_path = "collections_data.json"
try:
with open(json_path, 'r', encoding='utf-8') as f:
@ -810,9 +816,6 @@ class AppstreamSearcher:
except (IOError, json.JSONDecodeError) as e:
logger.error(f"Error loading collections data: {str(e)}")
if self._should_refresh():
self._refresh_category_data(searcher, category)
self.refresh_progress = (current_category / total_categories) * 100
def _update_from_collections(self, collections_data, category):

1005
main.py

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff