From 90c081c88993153dd1c794b1879c2c4b18019338 Mon Sep 17 00:00:00 2001 From: sithlord48 Date: Thu, 9 Jan 2025 09:51:35 -0500 Subject: [PATCH] chore: remove unneeded setVisible override and the unused mac os old tray code within it --- src/apps/deskflow-gui/MainWindow.cpp | 17 ----------------- src/apps/deskflow-gui/MainWindow.h | 1 - 2 files changed, 18 deletions(-) diff --git a/src/apps/deskflow-gui/MainWindow.cpp b/src/apps/deskflow-gui/MainWindow.cpp index 4b946b7cf..f001b5def 100644 --- a/src/apps/deskflow-gui/MainWindow.cpp +++ b/src/apps/deskflow-gui/MainWindow.cpp @@ -877,23 +877,6 @@ void MainWindow::onCoreConnectionStateChanged(CoreConnectionState state) } } -void MainWindow::setVisible(bool visible) -{ - QMainWindow::setVisible(visible); -#ifdef Q_OS_MAC - // dock hide only supported on lion :( - ProcessSerialNumber psn = {0, kCurrentProcess}; -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wdeprecated-declarations" - GetCurrentProcess(&psn); -#pragma GCC diagnostic pop - if (visible) - TransformProcessType(&psn, kProcessTransformToForegroundApplication); - else - TransformProcessType(&psn, kProcessTransformToBackgroundApplication); -#endif -} - QString MainWindow::getIPAddresses() const { QStringList result; diff --git a/src/apps/deskflow-gui/MainWindow.h b/src/apps/deskflow-gui/MainWindow.h index 208b531df..09f1c793e 100644 --- a/src/apps/deskflow-gui/MainWindow.h +++ b/src/apps/deskflow-gui/MainWindow.h @@ -85,7 +85,6 @@ public: explicit MainWindow(deskflow::gui::ConfigScopes &configScopes, AppConfig &appConfig); ~MainWindow() override; - void setVisible(bool visible) override; CoreMode coreMode() const { return m_CoreProcess.mode();