Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/profiles
diff options
context:
space:
mode:
authorDaniel Girtler <blackrabbit256@gmail.com>2022-05-05 20:48:01 +1000
committerGitHub <noreply@github.com>2022-05-05 12:48:01 +0200
commitbcd810d2d20e657d96f36e0007facff71e9532bc (patch)
treeb3b50f73b6b159bab19d5caaa279f0e3d637568c /profiles
parent2d371571783cde70554e3e4e272beab2546ffff9 (diff)
Fix 1117 (#1126)
* Fix 1117 * Update * flake8 Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
Diffstat (limited to 'profiles')
-rw-r--r--profiles/sway.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/profiles/sway.py b/profiles/sway.py
index e9c71b79..0819db95 100644
--- a/profiles/sway.py
+++ b/profiles/sway.py
@@ -1,5 +1,6 @@
# A desktop environment using "Sway"
import archinstall
+from archinstall import Menu
is_top_level_profile = False
@@ -22,8 +23,8 @@ def _check_driver() -> bool:
if packages and "nvidia" in packages:
prompt = 'The proprietary Nvidia driver is not supported by Sway. It is likely that you will run into issues, are you okay with that?'
- choice = archinstall.Menu(prompt, ['yes', 'no'], default_option='no').run()
- if choice == 'no':
+ choice = Menu(prompt, Menu.yes_no(), default_option=Menu.no()).run()
+ if choice == Menu.no():
return False
return True