refactor: remove redundant QTimer import in main_app

This commit is contained in:
2026-08-25 13:45:27 +02:00
committed by wakonig_k
parent ea222a06ac
commit 4c59064d70
2 changed files with 1 additions and 4 deletions
+1 -2
View File
@@ -5,7 +5,7 @@ import xml.etree.ElementTree as ET
from typing import TYPE_CHECKING, Callable
from bec_lib.logger import bec_logger
from qtpy.QtCore import Qt, Signal # type: ignore
from qtpy.QtCore import Qt, QTimer, Signal # type: ignore
from qtpy.QtGui import QFontMetrics, QPainter, QPainterPath, QPixmap
from qtpy.QtWidgets import (
QApplication,
@@ -496,7 +496,6 @@ class LaunchWindow(BECMainWindow):
@staticmethod
def _notify_launcher_ready(window: QWidget) -> None:
from qtpy.QtCore import QTimer
from bec_widgets.utils.launcher_ready import notify_launcher_ready
-2
View File
@@ -434,8 +434,6 @@ def main(): # pragma: no cover
startup_profiler.mark("window shown")
# First event-loop iteration -> the window is actually painted/interactive.
from qtpy.QtCore import QTimer
QTimer.singleShot(0, lambda: startup_profiler.mark("interactive", final=True))
sys.exit(app.exec())