Bug 1870852 - Fixed about:welcome pinning regression r=mhughes

Differential Revision: https://phabricator.services.mozilla.com/D196897
This commit is contained in:
Nipun Shukla
2023-12-20 18:13:30 +00:00
parent 38da77ef2e
commit b211acfaed

View File

@@ -1477,7 +1477,7 @@ static nsresult PinCurrentAppToTaskbarWin10(bool aCheckOnly,
// The behavior here is identical if we're only checking or if we try to pin
// but the app is already pinned so we update the variable accordingly.
if (!aCheckOnly) {
aCheckOnly = !IsCurrentAppPinnedToTaskbarSync(aAppUserModelId);
aCheckOnly = IsCurrentAppPinnedToTaskbarSync(aAppUserModelId);
}
const bool pinType = true; // true means pin
return ManageShortcutTaskbarPins(aCheckOnly, pinType, aShortcutPath);