Skip to content

Commit

Permalink
fixes IO Command sleep (Issue #726)
Browse files Browse the repository at this point in the history
  • Loading branch information
MAKOMO committed Nov 17, 2021
1 parent 10c116f commit 37aeea7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/artisanlib/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -22006,7 +22006,7 @@ def eventaction_internal(self,action,cmd):
self.setExtraEventButtonStyle(b, style="pressed")
else:
self.setExtraEventButtonStyle(b, style="normal")
elif cs_a[0] == "sleep" and cs_len == 1: # in seconds
elif cs_a[0] == "sleep" and cs_len == 2: # in seconds
try:
t = eval(cs_a[1]) # pylint: disable=eval-used
if isinstance(t,(float,int)):
Expand Down Expand Up @@ -23943,7 +23943,7 @@ def keyPressEvent(self,event):
self.toggleForegroundShowfullFlag()
elif k == 79: #O (toggle background showfull flag)
self.toggleBackroundShowfullFlag()
elif k == 72: #H
elif k == 72: #H
if not self.qmc.designerflag and not bool(aw.comparator):
if alt_modifier and platf != 'Windows' or ((control_shift_modifier or control_alt_modifier) and platf == 'Windows'): #control_alt_modifier here for backward compatibility only, see note above
self.deleteBackground()
Expand Down

0 comments on commit 37aeea7

Please sign in to comment.