mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 01:14:15 +02:00
[view] improvement: allowing the package name to concatenated with a custom action status
This commit is contained in:
@@ -1441,8 +1441,15 @@ class ManageWindow(QWidget):
|
|||||||
if not valid:
|
if not valid:
|
||||||
return
|
return
|
||||||
|
|
||||||
self._begin_action(action_label='{}{}'.format(self.i18n[action.i18n_status_key], ' {}'.format(pkg.model.name) if pkg else ''),
|
action_label = self.i18n[action.i18n_status_key]
|
||||||
action_id=ACTION_CUSTOM_ACTION)
|
|
||||||
|
if pkg:
|
||||||
|
if '{}' in action_label:
|
||||||
|
action_label = action_label.format(pkg.model.name)
|
||||||
|
else:
|
||||||
|
action_label += f' {pkg.model.name}'
|
||||||
|
|
||||||
|
self._begin_action(action_label=action_label, action_id=ACTION_CUSTOM_ACTION)
|
||||||
self.comp_manager.set_components_visible(False)
|
self.comp_manager.set_components_visible(False)
|
||||||
self._handle_console_option(True)
|
self._handle_console_option(True)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user