mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 04:44:15 +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
|
### Features
|
||||||
- new **restore** action to restore bauh settings and cache through the 'custom actions' button (**+**). It is equivalent to the command `bauh --reset`.
|
- 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
|
### Fixes
|
||||||
- Arch
|
- Arch
|
||||||
- 'clean cache' operation was not working in some scenarios
|
- 'clean cache' operation was not working in some scenarios
|
||||||
|
|||||||
@@ -186,6 +186,7 @@ class ArchManager(SoftwareManager):
|
|||||||
manager_method='clean_cache',
|
manager_method='clean_cache',
|
||||||
icon_path=get_icon_path(),
|
icon_path=get_icon_path(),
|
||||||
requires_root=True,
|
requires_root=True,
|
||||||
|
refresh=False,
|
||||||
manager=self)
|
manager=self)
|
||||||
}
|
}
|
||||||
self.index_aur = None
|
self.index_aur = None
|
||||||
@@ -2167,7 +2168,7 @@ class ArchManager(SoftwareManager):
|
|||||||
watcher.show_message(title=self.i18n['arch.custom_action.clean_cache'].capitalize(),
|
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(),
|
body=self.i18n['arch.custom_action.clean_cache.no_dir'.format(bold(cache_dir))].capitalize(),
|
||||||
type_=MessageType.WARNING)
|
type_=MessageType.WARNING)
|
||||||
return False
|
return True
|
||||||
|
|
||||||
text = '<p>{}.</p><p>{}.</p><p>{}.</p>'.format(self.i18n['arch.custom_action.clean_cache.msg1'],
|
text = '<p>{}.</p><p>{}.</p><p>{}.</p>'.format(self.i18n['arch.custom_action.clean_cache.msg1'],
|
||||||
self.i18n['arch.custom_action.clean_cache.msg2'],
|
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(),
|
watcher.show_message(title=self.i18n['arch.custom_action.clean_cache'].capitalize(),
|
||||||
body=self.i18n['arch.custom_action.clean_cache.fail'],
|
body=self.i18n['arch.custom_action.clean_cache.fail'],
|
||||||
type_=MessageType.ERROR)
|
type_=MessageType.ERROR)
|
||||||
|
return False
|
||||||
|
|
||||||
return False
|
return True
|
||||||
|
|||||||
@@ -74,7 +74,9 @@ class WebApplicationManager(SoftwareManager):
|
|||||||
manager=self,
|
manager=self,
|
||||||
manager_method='clean_environment',
|
manager_method='clean_environment',
|
||||||
icon_path=resource.get_path('img/web.svg', ROOT_DIR),
|
icon_path=resource.get_path('img/web.svg', ROOT_DIR),
|
||||||
requires_root=False)]
|
requires_root=False,
|
||||||
|
refresh=False)]
|
||||||
|
|
||||||
def _get_lang_header(self) -> str:
|
def _get_lang_header(self) -> str:
|
||||||
try:
|
try:
|
||||||
system_locale = locale.getdefaultlocale()
|
system_locale = locale.getdefaultlocale()
|
||||||
|
|||||||
Reference in New Issue
Block a user