Merge pull request #543 from lonerOrz/feature/calendar-event-toggle

feat: Add toggle to enable or disable calendar event display
This commit is contained in:
Lemmy
2025-10-21 09:53:53 -04:00
committed by GitHub
11 changed files with 46 additions and 3 deletions
+10 -1
View File
@@ -92,7 +92,11 @@ Singleton {
// Core functions
function checkAvailability() {
availabilityCheckProcess.running = true
if (Settings.data.location.showCalendarEvents) {
availabilityCheckProcess.running = true
} else {
root.available = false
}
}
function loadCalendars() {
@@ -100,6 +104,11 @@ Singleton {
}
function loadEvents(daysAhead = 31, daysBehind = 14) {
if (!Settings.data.location.showCalendarEvents) {
root.loading = false
root.events = []
return
}
if (loading)
return