Skip to content

Commit

Permalink
TitleEditor: Init class before creating timer
Browse files Browse the repository at this point in the history
  • Loading branch information
ferdnyc committed Mar 14, 2022
1 parent ac6d884 commit ee66141
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/windows/title_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,22 +65,19 @@ class TitleEditor(QDialog):

def __init__(self, *args, edit_file_path=None, duplicate=False, **kwargs):

# Create dialog class
super().__init__(*args, **kwargs)

# A timer to pause until user input stops before updating the svg
self.update_timer = QTimer()
self.update_timer.setInterval(300)
self.update_timer.timeout.connect(self.save_and_reload)

# Create dialog class
super().__init__(*args, **kwargs)

self.app = get_app()
self.project = self.app.project
self.edit_file_path = edit_file_path
self.duplicate = duplicate

# Get translation object
_ = self.app._tr

# Load UI from designer
ui_util.load_ui(self, self.ui_path)

Expand Down

0 comments on commit ee66141

Please sign in to comment.