Skip to content
This repository has been archived by the owner on Feb 18, 2023. It is now read-only.

Commit

Permalink
Add 2.5 Sec optional & set as default
Browse files Browse the repository at this point in the history
  • Loading branch information
Faelayis committed May 25, 2022
1 parent 7e2df6c commit 5629bfd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions plugins/devlop/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ export default class Plugin {
buttons: this.buttons && (this.buttons[0] || this.buttons[1]) ? this.buttons : undefined,
timestamps: { start: this.startTime },
});
}, this.settings.presenceUpdateInterval ?? 1000);
}, this.settings.presenceUpdateInterval ?? 2500);
}
async stopPresence(toast) {
clearInterval(Interval);
Expand Down Expand Up @@ -330,12 +330,16 @@ export default class Plugin {
new ZLibrary.Settings.Dropdown(
"Presence update interval",
null,
this.settings.presenceUpdateInterval ?? 1000,
this.settings.presenceUpdateInterval ?? 2500,
[
{
label: "1 Second",
value: 1000,
},
{
label: `2.5 Second ${this.settings.presenceUpdateInterval === 2500 ? "" : "(Recommend)"}`,
value: 2500,
},
{
label: "3 Second",
value: 3000,
Expand Down

0 comments on commit 5629bfd

Please sign in to comment.