Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Decrement badges - Tablacus Explorer
var Selected = GetSelectedArray(Ctrl, pt, true).shift();
if (Selected && Selected.Count) {
for (var i = Selected.Count; i-- > 0;) {
var path = api.GetDisplayNameOf(Selected.Item(i), SHGDN_FORADDRESSBAR | SHGDN_FORPARSING | SHGDN_ORIGINAL);
var s = api.LowPart(Addons.Badge.DB.Get(path)) - 1;
if (s >= 0) {
Addons.Badge.Set(path, s);
}
}
}
@tablacus

This comment has been minimized.

Copy link
Owner Author

@tablacus tablacus commented Aug 15, 2020

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment