Skip to content

Commit

Permalink
[nemo-qml-plugin-calendar] Remove deprecated exclude setting and upda…
Browse files Browse the repository at this point in the history
…te notebook visibility. Fixes JB#50237
  • Loading branch information
dcaliste committed Jun 16, 2020
1 parent 4a039cc commit 2ef9f53
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/calendarworker.cpp
Expand Up @@ -907,9 +907,15 @@ void CalendarWorker::loadNotebooks()
&& !mkNotebook->isShared()
&& mkNotebook->pluginName().isEmpty();

notebook.excluded = !mkNotebook->isVisible()
// To keep backward compatibility:
|| settings.value("exclude/" + notebook.uid, false).toBool();
notebook.excluded = !mkNotebook->isVisible();
// To keep backward compatibility:
if (settings.value("exclude/" + notebook.uid, false).toBool()) {
mkNotebook->setIsVisible(false);
if (notebook.excluded || mStorage->updateNotebook(mkNotebook)) {
settings.remove("exclude/" + notebook.uid);
}
notebook.excluded = true;
}

notebook.color = settings.value("colors/" + notebook.uid, QString()).toString();
if (notebook.color.isEmpty())
Expand Down

0 comments on commit 2ef9f53

Please sign in to comment.