Last active
June 5, 2021 12:18
-
-
Save tablacus/a4493d3c0b4e5f87e3da72e66ec0950b to your computer and use it in GitHub Desktop.
Decrement badges - Tablacus Explorer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Selected = GetSelectedArray(Ctrl, pt, true).shift(); | |
if (Selected && Selected.Count) { | |
for (let i = Selected.Count; i-- > 0;) { | |
const path = Selected.Item(i).Path; | |
const s = GetNum(Sync.Badge.DB.Get(path)) - 1; | |
if (s >= 0) { | |
Sync.Badge.Set(path, s); | |
} | |
} | |
} |
Author
tablacus
commented
Aug 15, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment