Skip to content

Commit

Permalink
Update rate popup
Browse files Browse the repository at this point in the history
  • Loading branch information
Levminer committed May 27, 2022
1 parent 2e4da98 commit 05dffe2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -844,15 +844,15 @@ const createWindows = () => {
}

if (settings.statistics.rated === true && settings.statistics.feedback === true) {
if (opens % 100 === 0) {
if (opens > 100) {
openInfo()
}
} else if (settings.statistics.rated === true || settings.statistics.feedback === true) {
if (opens % 50 === 0) {
if (opens > 50) {
openInfo()
}
} else {
if (opens % 15 === 0) {
if (opens > 15) {
openInfo()
}
}
Expand Down Expand Up @@ -1236,6 +1236,7 @@ ipc.on("support", () => {
ipc.on("rateAuthme", () => {
shell.openExternal("ms-windows-store://review/?ProductId=XP9M33RJSVD6JR")

settings.statistics.opens = 0
settings.statistics.rated = true

saveSettings()
Expand All @@ -1247,6 +1248,7 @@ ipc.on("rateAuthme", () => {
ipc.on("starAuthme", () => {
shell.openExternal("https://github.com/Levminer/authme/")

settings.statistics.opens = 0
settings.statistics.rated = true

saveSettings()
Expand Down

0 comments on commit 05dffe2

Please sign in to comment.