aboutsummaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorrating89us <45968869+rating89us@users.noreply.github.com>2021-06-06 21:55:34 +0200
committerGitHub <noreply@github.com>2021-06-06 21:55:34 +0200
commit9ab104b38a1aba71d2b35c6eb7a51c476e4abec2 (patch)
treefd35902328645cc848ca020dc62302959ab21bf2 /components
parent2946127ed791ef8dd6dc430b681a14cd5bd2d71e (diff)
downloadmonzero-gui-9ab104b38a1aba71d2b35c6eb7a51c476e4abec2.tar.gz
monzero-gui-9ab104b38a1aba71d2b35c6eb7a51c476e4abec2.tar.xz
monzero-gui-9ab104b38a1aba71d2b35c6eb7a51c476e4abec2.zip
DatePicker: display currently selected month when opening calendar
Diffstat (limited to 'components')
-rw-r--r--components/DatePicker.qml4
1 files changed, 4 insertions, 0 deletions
diff --git a/components/DatePicker.qml b/components/DatePicker.qml
index 8a79b2e8..554c731a 100644
--- a/components/DatePicker.qml
+++ b/components/DatePicker.qml
@@ -252,6 +252,10 @@ Item {
id: popup
padding: 0
closePolicy: QtQuickControls2.Popup.CloseOnEscape | QtQuickControls2.Popup.CloseOnPressOutsideParent
+ onOpened: {
+ calendar.visibleMonth = currentDate.getMonth();
+ calendar.visibleYear = currentDate.getFullYear();
+ }
Rectangle {
id: calendarRect