Skip to content

Commit

Permalink
Fix: autoswicher menu is broken. Ref #557
Browse files Browse the repository at this point in the history
  • Loading branch information
kozec committed May 11, 2020
1 parent 3bba434 commit 8d6d7ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scc/x11/autoswitcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,8 +312,8 @@ def on_response(*a):
if menuitem.id == "as::unassign":
AutoSwitcher.unassign(self.conds, self.title, self.wm_class, self.assigned_prof)
else:
if menu.daemon.get_profile():
profile = os.path.split(menu.daemon.get_profile())[-1]
if controller.get_profile():
profile = os.path.split(controller.get_profile())[-1]
if profile.endswith(".mod"):
profile = profile[0:-4]
if profile.endswith(".sccprofile"):
Expand Down

0 comments on commit 8d6d7ef

Please sign in to comment.