mirror of
https://github.com/bec-project/bec_widgets.git
synced 2026-09-03 07:10:42 +02:00
refactor: remove redundant QTimer import in main_app
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user