mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-15 18:43:59 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user