diff --git a/CHANGELOG.md b/CHANGELOG.md index c5047b6f..b8a97613 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/bauh/gems/arch/controller.py b/bauh/gems/arch/controller.py index 539a8c3e..8b248a6d 100644 --- a/bauh/gems/arch/controller.py +++ b/bauh/gems/arch/controller.py @@ -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 = '

{}.

{}.

{}.

'.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 diff --git a/bauh/gems/web/controller.py b/bauh/gems/web/controller.py index 94996ce4..133ea35b 100644 --- a/bauh/gems/web/controller.py +++ b/bauh/gems/web/controller.py @@ -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()