mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 03:34:15 +02:00
[arch] improvement -> AUR: edit pkgbuild dialog with 'No' as the default button
This commit is contained in:
@@ -1616,9 +1616,10 @@ class ArchManager(SoftwareManager):
|
|||||||
def _ask_for_pkgbuild_edition(self, pkgname: str, arch_config: dict, watcher: ProcessWatcher, pkgbuild_path: str) -> bool:
|
def _ask_for_pkgbuild_edition(self, pkgname: str, arch_config: dict, watcher: ProcessWatcher, pkgbuild_path: str) -> bool:
|
||||||
if pkgbuild_path:
|
if pkgbuild_path:
|
||||||
if arch_config['edit_aur_pkgbuild'] is None:
|
if arch_config['edit_aur_pkgbuild'] is None:
|
||||||
if watcher.request_confirmation(title=self.i18n['confirmation'].capitalize(),
|
if not watcher.request_confirmation(title=self.i18n['confirmation'].capitalize(),
|
||||||
body=self.i18n['arch.aur.action.edit_pkgbuild.body'].format(
|
body=self.i18n['arch.aur.action.edit_pkgbuild.body'].format(bold(pkgname)),
|
||||||
bold(pkgname))):
|
confirmation_label=self.i18n['no'].capitalize(),
|
||||||
|
deny_label=self.i18n['yes'].capitalize()):
|
||||||
return self._display_pkgbuild_for_editing(pkgname, watcher, pkgbuild_path)
|
return self._display_pkgbuild_for_editing(pkgname, watcher, pkgbuild_path)
|
||||||
elif arch_config['edit_aur_pkgbuild']:
|
elif arch_config['edit_aur_pkgbuild']:
|
||||||
return self._display_pkgbuild_for_editing(pkgname, watcher, pkgbuild_path)
|
return self._display_pkgbuild_for_editing(pkgname, watcher, pkgbuild_path)
|
||||||
|
|||||||
Reference in New Issue
Block a user