chore: remove unneeded setVisible override and the unused mac os old tray code within it
This commit is contained in:
@ -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;
|
||||
|
||||
@ -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();
|
||||
|
||||
Reference in New Issue
Block a user