chore: disable startup sync info popup

fix: #990
This commit is contained in:
windingwind 2024-06-03 16:48:09 +08:00
parent 95f1d4588c
commit b90dd7cf7d

View File

@ -7,8 +7,9 @@ export { setSyncing, callSyncing };
function setSyncing() {
const syncPeriod = getPref("syncPeriodSeconds") as number;
const enableHint = addon.data.env === "development";
if (syncPeriod > 0) {
showHint(`${getString("sync.start.hint")} ${syncPeriod} s`);
enableHint && showHint(`${getString("sync.start.hint")} ${syncPeriod} s`);
const timer = ztoolkit.getGlobal("setInterval")(
() => {
if (!addon.data.alive) {