Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
Kalendar
Commits
50ce7c85
Commit
50ce7c85
authored
Oct 03, 2022
by
Claudio Cambra
Browse files
Fix initial default view when there is no previous view set in config
Signed-off-by:
Claudio Cambra
<
claudio.cambra@gmail.com
>
parent
2ef3736d
Pipeline
#241208
passed with stage
in 3 minutes and 12 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/contents/ui/main.qml
View file @
50ce7c85
...
...
@@ -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
();
...
...
src/kalendarconfig.kcfg
View file @
50ce7c85
...
...
@@ -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>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment