Commit d5dbae55 authored by Claudio Cambra's avatar Claudio Cambra
Browse files

Stop letting view buttons load the same page that is currently active

parent b72147ec
Pipeline #101966 passed with stage
in 5 minutes and 8 seconds
......@@ -151,23 +151,31 @@ Kirigami.ApplicationWindow {
Connections {
target: KalendarApplication
function onOpenMonthView() {
monthScaleModelLoader.active = true;
root.switchView(monthViewComponent);
if(pageStack.currentItem.objectName !== "monthView") {
monthScaleModelLoader.active = true;
root.switchView(monthViewComponent);
}
}
function onOpenWeekView() {
weekScaleModelLoader.active = true;
root.switchView(weekViewComponent);
if(pageStack.currentItem.objectName !== "weekView") {
weekScaleModelLoader.active = true;
root.switchView(weekViewComponent);
}
}
function onOpenScheduleView() {
monthScaleModelLoader.active = true;
root.switchView(scheduleViewComponent);
if(pageStack.currentItem.objectName !== "scheduleView") {
monthScaleModelLoader.active = true;
root.switchView(scheduleViewComponent);
}
}
function onOpenTodoView() {
filterHeader.active = true;
root.switchView(todoPageComponent);
if(pageStack.currentItem.objectName !== "todoView") {
filterHeader.active = true;
root.switchView(todoPageComponent);
}
}
function onMoveViewForwards() {
......
Markdown is supported
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