1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-06 21:45:38 -05:00

calendar: fix events not loading for right month

This commit is contained in:
bbedward
2025-07-24 19:19:26 -04:00
parent 4086e914a7
commit 762785b27a
2 changed files with 5 additions and 3 deletions

View File

@@ -24,14 +24,16 @@ PanelWindow {
Qt.callLater(() => {
// This ensures opacity changes after window is visible
internalVisible = true // Force re-trigger if needed
// Ensure events are loaded for current display month
calendarGrid.loadEventsForMonth()
})
} else {
internalVisible = false
}
}
onVisibleChanged: {
if (visible && CalendarService)
CalendarService.loadCurrentMonth();
if (visible && calendarGrid)
calendarGrid.loadEventsForMonth();
}
implicitWidth: 480

View File

@@ -141,7 +141,7 @@ ScrollView {
}
StyledText {
text: "Examples: \"New York\", \"Tokyo\", \"44511\""
text: "Examples: \"New York\", \"Tokyo\", \"90210\""
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText
wrapMode: Text.WordWrap