Changeset View
Changeset View
Standalone View
Standalone View
src/qml/ElisaMainWindow.qml
Show First 20 Lines • Show All 105 Lines • ▼ Show 20 Line(s) | 90 | Settings { | |||
---|---|---|---|---|---|
106 | 106 | | |||
107 | property bool showPlaylist: true | 107 | property bool showPlaylist: true | ||
108 | 108 | | |||
109 | property bool headerBarIsMaximized: false | 109 | property bool headerBarIsMaximized: false | ||
110 | } | 110 | } | ||
111 | 111 | | |||
112 | Connections { | 112 | Connections { | ||
113 | target: headerBar.playerControl | 113 | target: headerBar.playerControl | ||
114 | onOpenMenu: if (applicationMenu.visible) { | 114 | onOpenMenu: { | ||
115 | if (applicationMenu.visible) { | ||||
115 | applicationMenu.close() | 116 | applicationMenu.close() | ||
116 | } else { | 117 | } else { | ||
117 | applicationMenu.popup() | 118 | applicationMenu.popup(mainWindow.width - applicationMenu.width, headerBar.height) | ||
119 | } | ||||
118 | } | 120 | } | ||
119 | } | 121 | } | ||
120 | 122 | | |||
121 | Connections { | 123 | Connections { | ||
122 | target: Qt.application | 124 | target: Qt.application | ||
123 | onAboutToQuit: | 125 | onAboutToQuit: | ||
124 | { | 126 | { | ||
125 | persistentSettings.x = mainWindow.x; | 127 | persistentSettings.x = mainWindow.x; | ||
▲ Show 20 Lines • Show All 207 Lines • Show Last 20 Lines |