mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-09 01:44:15 +02:00
setting flathub remote if it is not set (#18)
This commit is contained in:
10
fpakman/view/qt/common.py
Normal file
10
fpakman/view/qt/common.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from fpakman.core import flatpak
|
||||
from fpakman.view.qt import dialog
|
||||
|
||||
|
||||
def check_flatpak_installed(locale_keys: dict):
|
||||
|
||||
if not flatpak.is_installed():
|
||||
dialog.show_error(title=locale_keys['popup.flatpak_not_installed.title'],
|
||||
body=locale_keys['popup.flatpak_not_installed.msg'] + '...')
|
||||
exit(1)
|
||||
Reference in New Issue
Block a user