Skip to content

Commit

Permalink
Revert "qtui: Make UI appear on Qt::ApplicationActive for macOS"
Browse files Browse the repository at this point in the history
This reverts commit 2f2d537.

Better to handle this in libaudqt directly on the QApplication
so that it is main window/skin agnostic.

See audacious-media-player/audacious#1523
  • Loading branch information
jkl1337 committed Nov 22, 2024
1 parent 2f2d537 commit 6b93da8
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/qtui/main_window.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

#include <libaudcore/drct.h>
#include <libaudcore/i18n.h>
#include <libaudcore/interface.h>
#include <libaudcore/plugins.h>
#include <libaudcore/runtime.h>

Expand All @@ -39,7 +38,6 @@
#include <QBoxLayout>
#include <QCloseEvent>
#include <QDockWidget>
#include <QGuiApplication>
#include <QLabel>
#include <QMenuBar>
#include <QSettings>
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 6b93da8

Please sign in to comment.