Skip to content

Commit

Permalink
Update main_window.py
Browse files Browse the repository at this point in the history
  • Loading branch information
vikdevelop committed Mar 10, 2024
1 parent 81fa34e commit 3f585ea
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,11 +197,10 @@ def __init__(self, *args, **kwargs):
self.pBox.append(self.label_sorry)

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

for plugs in plug:
for plug in plugs:
result = subprocess.run(["snapctl", "is-connected", plug], stdout=subprocess.PIPE)
# If plug is not connected, display error message
if result.returncode != 0:
show_warning = True
Expand Down

0 comments on commit 3f585ea

Please sign in to comment.