MainWindow: Simplify hiding to tray logic

This commit is contained in:
Jonas Kvinge
2024-09-27 19:44:02 +02:00
parent 1c833a28dc
commit a239374c4b
2 changed files with 24 additions and 44 deletions

View File

@@ -117,6 +117,7 @@ class MainWindow : public QMainWindow, public PlatformInterface {
protected:
void showEvent(QShowEvent *e) override;
void hideEvent(QHideEvent *e) override;
void closeEvent(QCloseEvent *e) override;
void keyPressEvent(QKeyEvent *e) override;
#ifdef Q_OS_WIN
@@ -396,7 +397,6 @@ class MainWindow : public QMainWindow, public PlatformInterface {
bool initialized_;
bool was_maximized_;
bool was_minimized_;
bool hidden_;
Song song_;
Song song_playing_;