chore: remove unneeded setVisible override and the unused mac os old tray code within it
This commit is contained in:
parent
a08b0c41e0
commit
90c081c889
2 changed files with 0 additions and 18 deletions
|
|
@ -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
|
QString MainWindow::getIPAddresses() const
|
||||||
{
|
{
|
||||||
QStringList result;
|
QStringList result;
|
||||||
|
|
|
||||||
|
|
@ -85,7 +85,6 @@ public:
|
||||||
explicit MainWindow(deskflow::gui::ConfigScopes &configScopes, AppConfig &appConfig);
|
explicit MainWindow(deskflow::gui::ConfigScopes &configScopes, AppConfig &appConfig);
|
||||||
~MainWindow() override;
|
~MainWindow() override;
|
||||||
|
|
||||||
void setVisible(bool visible) override;
|
|
||||||
CoreMode coreMode() const
|
CoreMode coreMode() const
|
||||||
{
|
{
|
||||||
return m_CoreProcess.mode();
|
return m_CoreProcess.mode();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue