|
|
|
@ -39,6 +39,7 @@ Nexus::~Nexus()
@@ -39,6 +39,7 @@ Nexus::~Nexus()
|
|
|
|
|
#endif |
|
|
|
|
delete loginScreen; |
|
|
|
|
delete profile; |
|
|
|
|
if (profile) |
|
|
|
|
Settings::getInstance().save(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -68,12 +69,23 @@ void Nexus::start()
@@ -68,12 +69,23 @@ void Nexus::start()
|
|
|
|
|
|
|
|
|
|
void Nexus::showLogin() |
|
|
|
|
{ |
|
|
|
|
((QApplication*)qApp)->setQuitOnLastWindowClosed(true); |
|
|
|
|
#ifdef Q_OS_ANDROID |
|
|
|
|
delete androidui; |
|
|
|
|
androidgui = nullptr; |
|
|
|
|
#else |
|
|
|
|
delete widget; |
|
|
|
|
widget = nullptr; |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
delete profile; |
|
|
|
|
profile = nullptr; |
|
|
|
|
|
|
|
|
|
loginScreen->reset(); |
|
|
|
|
#ifndef Q_OS_ANDROID |
|
|
|
|
loginScreen->move(QApplication::desktop()->screen()->rect().center() - loginScreen->rect().center()); |
|
|
|
|
#endif |
|
|
|
|
loginScreen->show(); |
|
|
|
|
((QApplication*)qApp)->setQuitOnLastWindowClosed(true); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void Nexus::showMainGUI() |
|
|
|
|