Skip to content

Commit 3f585ea

Browse files
authored
Update main_window.py
1 parent 81fa34e commit 3f585ea

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/main_window.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,11 +197,10 @@ def __init__(self, *args, **kwargs):
197197
self.pBox.append(self.label_sorry)
198198

199199
if snap:
200-
plug = ["dot-config", "dot-local", "dot-themes", "dot-icons", "dot-fonts", "login-session-control"]
201-
# If plug is not connected, display error message
202-
result = subprocess.run(["snapctl", "is-connected", plug], stdout=subprocess.PIPE)
200+
plugs = ["dot-config", "dot-local", "dot-themes", "dot-icons", "dot-fonts", "login-session-control"]
203201

204-
for plugs in plug:
202+
for plug in plugs:
203+
result = subprocess.run(["snapctl", "is-connected", plug], stdout=subprocess.PIPE)
205204
# If plug is not connected, display error message
206205
if result.returncode != 0:
207206
show_warning = True

0 commit comments

Comments
 (0)