Skip to content

Commit

Permalink
fixed closeEvent warn by accepting the event
Browse files Browse the repository at this point in the history
  • Loading branch information
Odizinne committed Sep 15, 2024
1 parent d635078 commit d061c6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HeadsetControlQt/headsetcontrolqt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -529,9 +529,9 @@ void HeadsetControlQt::trayIconActivated(QSystemTrayIcon::ActivationReason reaso

void HeadsetControlQt::closeEvent(QCloseEvent *event)
{
event->accept();
trayIcon->contextMenu()->actions().first()->setText(tr("Show"));
sendFirstMinimizeNotification();

}

void HeadsetControlQt::sendFirstMinimizeNotification()
Expand Down

0 comments on commit d061c6c

Please sign in to comment.