mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-25 06:25:56 +03:00
Removal of init.qml plus minor fixes
Signed-off-by: Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com>
This commit is contained in:
parent
66bfccc738
commit
c45d2212a5
2 changed files with 1 additions and 21 deletions
|
@ -41,7 +41,7 @@ Systray::Systray() // TODO: make singleton, provide ::instance()
|
|||
// Create QML tray engine, build component, set C++ backend context used in window.qml
|
||||
// Use pointer instead of engine() helper function until Qt 5.12 is minimum standard
|
||||
QQmlEngine *engine = new QQmlEngine;
|
||||
QQmlComponent systray(engine, QUrl(QStringLiteral("qrc:/qml/src/gui/tray/init.qml")));
|
||||
QQmlComponent systray(engine, QUrl(QStringLiteral("qrc:/qml/src/gui/tray/window.qml")));
|
||||
_trayContext = engine->contextForObject(systray.create());
|
||||
|
||||
_accountMenuModel = UserModel::instance();
|
||||
|
|
|
@ -1,20 +0,0 @@
|
|||
import QtQuick 2.0
|
||||
import Qt.labs.platform 1.1
|
||||
|
||||
SystemTrayIcon {
|
||||
visible: true
|
||||
//icon.source: "qrc:/client/theme/colored/state-offline-32.png"
|
||||
icon.source: "qrc:/client/theme/colored/state-sync-32.png";
|
||||
|
||||
Component.onCompleted: {
|
||||
showMessage("Desktop Client 2.7", "New QML menu!", 1000)
|
||||
}
|
||||
|
||||
onActivated: {
|
||||
var component = Qt.createComponent("qrc:/qml/src/gui/tray/window.qml")
|
||||
var win = component.createObject()
|
||||
win.show()
|
||||
win.raise()
|
||||
win.requestActivate()
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue