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

Fix clicking on notifications not always correctly switching to correct view



Signed-off-by: Claudio Cambra's avatarClaudio Cambra <claudio.cambra@gmail.com>
parent 85d9893f
Pipeline #225650 passed with stage
in 2 minutes and 26 seconds
......@@ -379,7 +379,10 @@ Kirigami.ApplicationWindow {
}
function onOpenIncidence(incidenceData, occurrenceDate) {
if(pageStack.currentItem.mode === KalendarApplication.Todo && incidenceData.incidenceType !== IncidenceWrapper.TypeTodo) {
// Switch to an event view if the current view is not compatible with the current incidence type
if((pageStack.currentItem.mode !== KalendarApplication.Todo && pageStack.currentItem.mode !== KalendarApplication.Event) ||
(pageStack.currentItem.mode === KalendarApplication.Todo && incidenceData.incidenceType !== IncidenceWrapper.TypeTodo)) {
Kirigami.Settings.isMobile ? dayViewAction.trigger() : weekViewAction.trigger();
}
......
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