Commit 8de0bca5 authored by Claudio Cambra's avatar Claudio Cambra
Browse files

Fix global menu breakage introduced by MR 214

parent f417db34
Pipeline #175146 passed with stage
in 5 minutes and 8 seconds
......@@ -13,7 +13,7 @@ import org.kde.kalendar 1.0
Labs.MenuBar {
id: bar
property var parentWindow: null
property bool mode: KalendarApplication.Event
property var mode: KalendarApplication.Event
Labs.Menu {
title: i18nc("@action:menu", "File")
......
......@@ -482,8 +482,7 @@ Kirigami.ApplicationWindow {
sourceComponent: WindowMenu {
parentWindow: root
mode: applicationWindow().pageStack.currentItem ? applicationWindow().pageStack.currentItem.mode : KalendarApplication.Event
Component.onCompleted: console.log(mode, KalendarApplication.Event, KalendarApplication.Todo)
mode: applicationWindow().pageStack.currentItem ? applicationWindow().pageStack.currentItem.mode : KalendarApplication.Event
Kirigami.Theme.colorSet: Kirigami.Theme.Header
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment