From 6b93da8b35d51343a88c4cf0c69327ee7b659e9c Mon Sep 17 00:00:00 2001 From: "John K. Luebs" Date: Fri, 22 Nov 2024 15:11:32 -0600 Subject: [PATCH] Revert "qtui: Make UI appear on Qt::ApplicationActive for macOS" This reverts commit 2f2d5374f0f8ec7f453e37d821f2687a5a36dc25. Better to handle this in libaudqt directly on the QApplication so that it is main window/skin agnostic. See audacious-media-player/audacious#1523 --- src/qtui/main_window.cc | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/qtui/main_window.cc b/src/qtui/main_window.cc index cee2476a2..c4188cef7 100644 --- a/src/qtui/main_window.cc +++ b/src/qtui/main_window.cc @@ -21,7 +21,6 @@ #include #include -#include #include #include @@ -39,7 +38,6 @@ #include #include #include -#include #include #include #include @@ -223,13 +221,6 @@ MainWindow::MainWindow() /* set initial keyboard focus on the playlist */ m_playlist_tabs->currentPlaylistWidget()->setFocus(Qt::OtherFocusReason); - -#ifdef Q_OS_MAC - QObject::connect(qGuiApp, &QGuiApplication::applicationStateChanged, this, [](auto state) { - if (state == Qt::ApplicationState::ApplicationActive) - aud_ui_show(true); - }); -#endif } MainWindow::~MainWindow()