Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small Title Editor fixes #4726

Merged
merged 3 commits into from
Mar 31, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
TitleEditor: Init class before creating timer
  • Loading branch information
ferdnyc committed Mar 14, 2022
commit ee661419fed61cfad5ab8ff9d1d2924f5e275c1d
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