Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
JE-Chen committed Sep 1, 2023
1 parent 9ce42c8 commit 56428df
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ def set_autocontrol_menu(ui_we_want_to_set: AutomationEditor):

def create_project() -> None:
try:
import je_auto_control
package = je_auto_control
if package is not None:
package.create_project_dir()
Expand All @@ -129,5 +128,5 @@ def create_project() -> None:

def stop_record(editor_instance: AutomationEditor):
widget = editor_instance.tab_widget.currentWidget()
if type(widget) is EditorWidget:
if isinstance(widget, EditorWidget):
widget.code_edit.appendPlainText(str(je_auto_control.stop_record()))

0 comments on commit 56428df

Please sign in to comment.