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

Add an option to disable pop-ups in favour of the info drawer



Signed-off-by: Claudio Cambra's avatarClaudio Cambra <claudio.cambra@gmail.com>
parent fe50ac82
Pipeline #230651 passed with stage
in 2 minutes and 14 seconds
......@@ -112,9 +112,11 @@ QtObject {
function setUpView(modelData, incidenceItem = null) {
// Choose between opening the incidence information in the drawer or the popup
const showingCalendarView = KalendarApplication.Event & appMain.pageStack.currentItem.mode;
const usingDrawer = Kirigami.Settings.isMobile ||
!incidenceItem ||
appMain.pageStack.currentItem.objectName === "todoView";
!showingCalendarView ||
!Config.useIncidenceInfoPopupInCalendarViews;
appMain.incidenceInfoDrawerEnabled = usingDrawer;
appMain.incidenceInfoPopupEnabled = !usingDrawer;
......
......@@ -15,6 +15,16 @@ Kirigami.ScrollablePage {
Kirigami.FormData.isSection: true
Kirigami.FormData.label: i18n("General settings")
}
Controls.CheckBox {
text: i18n("Use popup to show incidence information")
checked: Config.useIncidenceInfoPopupInCalendarViews
enabled: !Config.isUseIncidenceInfoPopupInCalendarViewsImmutable && !Kirigami.Settings.isMobile
visible: !Kirigami.Settings.isMobile
onClicked: {
Config.useIncidenceInfoPopupInCalendarViews = !Config.useIncidenceInfoPopupInCalendarViews;
Config.save();
}
}
Controls.CheckBox {
text: i18n("Show sub-tasks in calendar views")
checked: Config.showSubtodosInCalendarViews
......
......@@ -82,6 +82,10 @@ SPDX-License-Identifier: LGPL-2.0-or-later
</group>
<group name="GeneralView">
<entry name="useIncidenceInfoPopupInCalendarViews" type="Bool">
<label>Use a popup to view incidence information instead of a drawer.</label>
<default>true</default>
</entry>
<entry name="showSubtodosInCalendarViews" type="Bool">
<label>Show subtasks in the calendar views (e.g. month, schedule, etc. views).</label>
<default>true</default>
......
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