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:
parent
b47570729f
commit
8c5ebbc474
8
main.js
8
main.js
|
@ -1291,6 +1291,12 @@ function checkevents()
|
||||||
queryremote({action: "cal"})
|
queryremote({action: "cal"})
|
||||||
.then(data =>
|
.then(data =>
|
||||||
{
|
{
|
||||||
|
if (!isremote())
|
||||||
|
{
|
||||||
|
console.log("ignore events because current vault is " + currentvault);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var events = ics2json(data.ics);
|
var events = ics2json(data.ics);
|
||||||
|
|
||||||
// todo: keep future only
|
// todo: keep future only
|
||||||
|
@ -2467,7 +2473,7 @@ function loadnote(name)
|
||||||
localdata.unshift(note);
|
localdata.unshift(note);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!preview.hidden)
|
if (!preview.hidden || (preview.hidden && note.title == "Revue de presse"))
|
||||||
{
|
{
|
||||||
togglepreview();
|
togglepreview();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue