fixed: do not update events if switchjed to local in the meantime

changed: revue de presse in preview by default
This commit is contained in:
quenousimporte 2023-04-24 14:10:26 +02:00
parent b47570729f
commit 8c5ebbc474
1 changed files with 7 additions and 1 deletions

View File

@ -1291,6 +1291,12 @@ function checkevents()
queryremote({action: "cal"})
.then(data =>
{
if (!isremote())
{
console.log("ignore events because current vault is " + currentvault);
return;
}
var events = ics2json(data.ics);
// todo: keep future only
@ -2467,7 +2473,7 @@ function loadnote(name)
localdata.unshift(note);
}
if (!preview.hidden)
if (!preview.hidden || (preview.hidden && note.title == "Revue de presse"))
{
togglepreview();
}