mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-22 02:01:08 +07:00
fixed autostart app hide
This commit is contained in:
@@ -119,7 +119,13 @@ void AmneziaApplication::init()
|
|||||||
win->setPersistentSceneGraph(true);
|
win->setPersistentSceneGraph(true);
|
||||||
win->setPersistentGraphics(true);
|
win->setPersistentGraphics(true);
|
||||||
#endif
|
#endif
|
||||||
|
#if defined(Q_OS_ANDROID) || defined(Q_OS_IOS)
|
||||||
win->show();
|
win->show();
|
||||||
|
#else
|
||||||
|
if (!m_coreController || !m_coreController->pageController()->shouldStartMinimized()) {
|
||||||
|
win->show();
|
||||||
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
Qt::QueuedConnection);
|
Qt::QueuedConnection);
|
||||||
|
|||||||
@@ -128,6 +128,11 @@ void PageController::showOnStartup()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool PageController::shouldStartMinimized() const
|
||||||
|
{
|
||||||
|
return m_settingsController->isStartMinimizedEnabled();
|
||||||
|
}
|
||||||
|
|
||||||
bool PageController::isTriggeredByConnectButton()
|
bool PageController::isTriggeredByConnectButton()
|
||||||
{
|
{
|
||||||
return m_isTriggeredByConnectButton;
|
return m_isTriggeredByConnectButton;
|
||||||
|
|||||||
@@ -123,6 +123,7 @@ public slots:
|
|||||||
void updateNavigationBarColor(const int color);
|
void updateNavigationBarColor(const int color);
|
||||||
|
|
||||||
void showOnStartup();
|
void showOnStartup();
|
||||||
|
bool shouldStartMinimized() const;
|
||||||
|
|
||||||
bool isTriggeredByConnectButton();
|
bool isTriggeredByConnectButton();
|
||||||
void setTriggeredByConnectButton(bool trigger);
|
void setTriggeredByConnectButton(bool trigger);
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ Window {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
visible: true
|
visible: !GC.isDesktop()
|
||||||
width: GC.screenWidth
|
width: GC.screenWidth
|
||||||
height: GC.screenHeight
|
height: GC.screenHeight
|
||||||
minimumWidth: GC.isDesktop() ? 360 : 0
|
minimumWidth: GC.isDesktop() ? 360 : 0
|
||||||
|
|||||||
Reference in New Issue
Block a user