mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 02:24:16 +02:00
fix AUR missing deps text | showing app type in history dialog
This commit is contained in:
@@ -22,7 +22,7 @@ def request_optional_deps(pkgname: str, pkg_mirrors: dict, watcher: ProcessWatch
|
|||||||
|
|
||||||
def request_install_missing_deps(pkgname: str, pkg_mirrors: dict, watcher: ProcessWatcher, i18n: dict) -> bool:
|
def request_install_missing_deps(pkgname: str, pkg_mirrors: dict, watcher: ProcessWatcher, i18n: dict) -> bool:
|
||||||
deps_str = ''.join(['<br/><span style="font-weight:bold"> - {} ( {} )</span>'.format(d, m.upper()) for d, m in pkg_mirrors.items()])
|
deps_str = ''.join(['<br/><span style="font-weight:bold"> - {} ( {} )</span>'.format(d, m.upper()) for d, m in pkg_mirrors.items()])
|
||||||
msg = '<p>{}</p>'.format(i18n['arch.missing_deps.body'].format('<span style="font-weight: bold">{}</span>'.format(pkgname) + ':<br/>' + deps_str))
|
msg = '<p>{}</p>'.format(i18n['arch.missing_deps.body'].format(bold(pkgname)) + ':<br/>' + deps_str)
|
||||||
msg += i18n['ask.continue']
|
msg += i18n['ask.continue']
|
||||||
|
|
||||||
return watcher.request_confirmation(i18n['arch.missing_deps.title'], msg)
|
return watcher.request_confirmation(i18n['arch.missing_deps.title'], msg)
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ class HistoryDialog(QDialog):
|
|||||||
def __init__(self, history: PackageHistory, icon_cache: MemoryCache, locale_keys: dict):
|
def __init__(self, history: PackageHistory, icon_cache: MemoryCache, locale_keys: dict):
|
||||||
super(HistoryDialog, self).__init__()
|
super(HistoryDialog, self).__init__()
|
||||||
|
|
||||||
self.setWindowTitle('{} - {} '.format(locale_keys['popup.history.title'], history.pkg.name))
|
self.setWindowTitle('{} - {} ({})'.format(locale_keys['popup.history.title'], history.pkg.name, history.pkg.get_type()))
|
||||||
|
|
||||||
layout = QVBoxLayout()
|
layout = QVBoxLayout()
|
||||||
self.setLayout(layout)
|
self.setLayout(layout)
|
||||||
|
|||||||
Reference in New Issue
Block a user