Move the log popup to the main window

The quiz reports point changes with an event_logged signal, and the main
window adds them to the log. Alt+L is handled by the main window.
This commit is contained in:
Sansan committed 2026-10-06 11:13:11 +02:00
1 parent e94c75e84d
commit 5cdec5cc8f
8 files changed
+30 -27

No files matched your search

+7 -1
View File
@@ -25,6 +25,9 @@ var qr_window: Control = %QRWindow
@onready
var about_window: Control = %AboutWindow
@onready
var log_window: Control = %Log
@onready
var statistic_popup: PopupPanel = $StatisticsPopupPanel
@@ -49,6 +52,7 @@ func _ready() -> void:
sync_window.connect("sync_started", _on_sync_started)
sync_window.connect("sync_finished", _on_sync_finished)
quiz.server_changed.connect(search_view.get_list_of_soundtracks)
quiz.event_logged.connect(log_window.add_log_row)
search_view.get_list_of_soundtracks()
@@ -64,10 +68,12 @@ func _input(event: InputEvent) -> void:
DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_WINDOWED)
if event.alt_pressed && event.keycode == KEY_K:
shortcuts_window.toggle()
if event.alt_pressed && event.keycode == KEY_L:
log_window.toggle()
func _popups() -> Array[PopupWindow]:
return [search_view, sync_window, qr_window, shortcuts_window, about_window]
return [search_view, sync_window, qr_window, shortcuts_window, about_window, log_window]
func show_search() -> void: