Don't show "Close in System Tray button" on Android

Fix #273
This commit is contained in:
Carl Schwan
2021-02-26 14:15:33 +01:00
parent 1351dff514
commit 481a2e3681
3 changed files with 14 additions and 1 deletions

View File

@@ -404,6 +404,15 @@ KAboutData Controller::aboutData() const
return m_aboutData;
}
bool Controller::supportSystemTray() const
{
#ifdef Q_OS_ANDROID
return false;
#else
return true;
#endif
}
void Controller::changePassword(Connection *connection, const QString &currentPassword, const QString &newPassword)
{
NeochatChangePasswordJob *job = connection->callApi<NeochatChangePasswordJob>(newPassword, false);