mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 17:34:14 +02:00
[improvement] some custom actions not related to installed packages state will not refresh the table after succeeded
This commit is contained in:
@@ -8,6 +8,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
||||
### Features
|
||||
- new **restore** action to restore bauh settings and cache through the 'custom actions' button (**+**). It is equivalent to the command `bauh --reset`.
|
||||
|
||||
### Improvements
|
||||
- some custom actions not related to installed packages state will not refresh the table after succeeded
|
||||
|
||||
### Fixes
|
||||
- Arch
|
||||
- 'clean cache' operation was not working in some scenarios
|
||||
|
||||
@@ -186,6 +186,7 @@ class ArchManager(SoftwareManager):
|
||||
manager_method='clean_cache',
|
||||
icon_path=get_icon_path(),
|
||||
requires_root=True,
|
||||
refresh=False,
|
||||
manager=self)
|
||||
}
|
||||
self.index_aur = None
|
||||
@@ -2167,7 +2168,7 @@ class ArchManager(SoftwareManager):
|
||||
watcher.show_message(title=self.i18n['arch.custom_action.clean_cache'].capitalize(),
|
||||
body=self.i18n['arch.custom_action.clean_cache.no_dir'.format(bold(cache_dir))].capitalize(),
|
||||
type_=MessageType.WARNING)
|
||||
return False
|
||||
return True
|
||||
|
||||
text = '<p>{}.</p><p>{}.</p><p>{}.</p>'.format(self.i18n['arch.custom_action.clean_cache.msg1'],
|
||||
self.i18n['arch.custom_action.clean_cache.msg2'],
|
||||
@@ -2194,5 +2195,6 @@ class ArchManager(SoftwareManager):
|
||||
watcher.show_message(title=self.i18n['arch.custom_action.clean_cache'].capitalize(),
|
||||
body=self.i18n['arch.custom_action.clean_cache.fail'],
|
||||
type_=MessageType.ERROR)
|
||||
return False
|
||||
|
||||
return False
|
||||
return True
|
||||
|
||||
@@ -74,7 +74,9 @@ class WebApplicationManager(SoftwareManager):
|
||||
manager=self,
|
||||
manager_method='clean_environment',
|
||||
icon_path=resource.get_path('img/web.svg', ROOT_DIR),
|
||||
requires_root=False)]
|
||||
requires_root=False,
|
||||
refresh=False)]
|
||||
|
||||
def _get_lang_header(self) -> str:
|
||||
try:
|
||||
system_locale = locale.getdefaultlocale()
|
||||
|
||||
Reference in New Issue
Block a user