Skip to content

fix: lazy init for sensors tab and Wayland tray popup#6

Open
iswad-lab wants to merge 6 commits into
nbfc-linux:mainfrom
iswad-lab:main
Open

fix: lazy init for sensors tab and Wayland tray popup#6
iswad-lab wants to merge 6 commits into
nbfc-linux:mainfrom
iswad-lab:main

Conversation

@iswad-lab

Copy link
Copy Markdown

Changes

1. Lazy init for Sensors tab

setup_ui() was called in TemperatureSourcesWidget.__init__(), blocking nbfc-qt startup for ~3s while nbfc complete-sensors polls for NVIDIA sensors. Moved to start() — called only when user clicks the "Sensors" tab.

2. Wayland-compatible tray popup

Qt.Popup uses Wayland's xdg_popup protocol which requires a parent that has received focus, causing warnings or crashes. Replaced with Qt.WindowType.Window | Qt.WindowType.FramelessWindowHint | Qt.WindowType.WindowStaysOnTopHint + focusOutEvent to hide on click outside (popup-like behavior).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant