Skip to content

Commit

Permalink
录制快捷键与按钮逻辑共用问题解决
Browse files Browse the repository at this point in the history
  • Loading branch information
Monomux committed Jun 5, 2022
1 parent 959cae0 commit 7ef7a5f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion UIFunc.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,6 @@ def recordMethod(self):
if self.recording:
logger.info('Record stop')
self.recording = False
self.record = self.record[:-2]
output = json.dumps(self.record, indent=1, ensure_ascii=False)
output = output.replace('\r\n', '\n').replace('\r', '\n')
output = output.replace('\n ', '').replace('\n ', '')
Expand Down Expand Up @@ -509,6 +508,8 @@ def recordMethod(self):
self.btrun.setEnabled(False)

def OnBtrecordButton(self):
if self.recording:
self.record = self.record[:-2]
self.recordMethod()

def OnBtrunButton(self):
Expand Down

0 comments on commit 7ef7a5f

Please sign in to comment.