-
Notifications
You must be signed in to change notification settings - Fork 65
Nheko cancel normal system reboot/shutdown #353
Comments
@Vascom Does this also happen when nheko is not configured to minimize to tray? (option from the settings menu) |
Then not configured to minimize to tray system reboot normal. |
I confirm, also here if not configured to minimize to tray, reboot or logout is not cancelled by nheko. |
So the problem is within the following lines Lines 278 to 288 in cfaecaa
specifically the event->ignore() .
It's used to hide the window instead of closing it when "minimize to tray" is enabled. Not sure how we can implement "minimize to tray" while not ignoring the close event. |
Can you check how it is realised in other applications? |
I haven't found an example application yet. If you know any Qt apps with that functionality please let me know so I can take a closer look. |
telegram-desktop for example. |
It's not. Telegram has
So do it like
|
Thanks, this solved the problem. |
System:
Actual behavior
Then nheko is run and I try reboot or shutdown system from menu it cancelled with message: "exit cancelled by program /usr/bin/nheko". And nheko winodow go to tray.
Expected behavior
Normal system reboot/shutdown by request.
Steps to reproduce
Just run nheko and try reboot system from KDE menu.
The text was updated successfully, but these errors were encountered: