Skip to content

Commit ee3c24f

Browse files
committed
reduce dialog centering time
1 parent 7eba0ad commit ee3c24f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/core/screens/create_session_window.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def create_new_project(self):
119119

120120
# Center the dialog
121121
from core.utils.tk_utils import _main_window
122-
dialog.after(100, lambda: center_relative_to_parent(dialog, _main_window))
122+
dialog.after(10, lambda: center_relative_to_parent(dialog, _main_window))
123123

124124
# Title
125125
title_label = tk.Label(dialog, text="Create New Project", font=("Arial", 12, "bold"))

src/core/screens/sessions_window.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ def show_move_session_dialog(self, session_name, current_project, available_proj
312312

313313
# Center the dialog
314314
from core.utils.tk_utils import _main_window
315-
dialog.after(100, lambda: center_relative_to_parent(dialog, _main_window))
315+
center_relative_to_parent(dialog, _main_window)
316316

317317
dialog.grab_set()
318318

0 commit comments

Comments
 (0)