Q_INVOKABLE void UserModel::openCurrentAccountServer()
{
- // Don't open this URL when the QML appMenu pops up on click (see Window.qml)
- if (appList().count() > 0)
- return;
if (_users.isEmpty())
return;
import QtQml.Models 2.1\r
import QtQuick 2.9\r
import QtQuick.Window 2.3\r
-import QtQuick.Controls 2.2\r
+import QtQuick.Controls 2.3\r
import QtQuick.Layouts 1.2\r
import QtGraphicalEffects 1.0\r
\r
id: trayWindowAppsButton\r
icon.source: "qrc:///client/theme/white/more-apps.svg"\r
onClicked: {\r
- /*\r
- // The count() property was introduced in QtQuick.Controls 2.3 (Qt 5.10)\r
- // so we handle this with UserModel.openCurrentAccountServer()\r
- //\r
- // See UserModel::openCurrentAccountServer() to disable this workaround\r
- // in the future for Qt >= 5.10\r
-\r
- if(appsMenu.count() > 0) {\r
- appsMenu.popup();\r
+ if(appsMenu.count > 0) {\r
+ appsMenu.open()\r
} else {\r
- UserModel.openCurrentAccountServer();\r
+ UserModel.openCurrentAccountServer()\r
}\r
- */\r
-\r
- appsMenu.open();\r
- UserModel.openCurrentAccountServer();\r
}\r
\r
Menu {\r