Skip to content

Commit

Permalink
Merge pull request #175 from jkl1337/master
Browse files Browse the repository at this point in the history
Revert "qtui: Make UI appear on Qt::ApplicationActive for macOS"
  • Loading branch information
kaniini authored Nov 22, 2024
2 parents 2f2d537 + 6b93da8 commit dccd63f
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 dccd63f

Please sign in to comment.