Commit 50ce7c85 authored by Claudio Cambra's avatar Claudio Cambra
Browse files

Fix initial default view when there is no previous view set in config



Signed-off-by: Claudio Cambra's avatarClaudio Cambra <claudio.cambra@gmail.com>
parent 2ef3736d
Pipeline #241208 passed with stage
in 3 minutes and 12 seconds
......@@ -97,6 +97,12 @@ Kirigami.ApplicationWindow {
Component.onCompleted: {
KalendarUiUtils.appMain = root; // Most of our util functions use things defined here in main
if (Config.lastOpenedView === -1) {
Kirigami.Settings.isMobile ? scheduleViewAction.trigger() : monthViewAction.trigger();
return;
}
switch (Config.lastOpenedView) {
case Config.MonthView:
monthViewAction.trigger();
......
......@@ -51,7 +51,7 @@ SPDX-License-Identifier: LGPL-2.0-or-later
<choice name="ContactView"/>
<choice name="MailView"/>
</choices>
<default>ScheduleView</default>
<default>-1</default>
</entry>
<entry name="incidenceInfoDrawerDrawerWidth" type="Int">
<label>Width of the incidence drawer</label>
......
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