mirror of
https://github.com/Vencord/Vesktop.git
synced 2025-02-23 21:55:09 +00:00
fix: reset button
This commit is contained in:
parent
ccbb0945ff
commit
b775af8086
2 changed files with 3 additions and 3 deletions
|
@ -37,10 +37,8 @@ export async function setTrayIcon(iconName: string) {
|
|||
if (iconName === "icon" && lastBadgeCount && lastBadgeCount > 0) {
|
||||
var trayImage: NativeImage;
|
||||
if (isCustomIcon("icon")) {
|
||||
console.log("setting badge and CUSTOM icon");
|
||||
trayImage = nativeImage.createFromPath(join(ICONS_DIR, "icon_custom.png"));
|
||||
} else {
|
||||
console.log("setting badge and stock icon");
|
||||
trayImage = nativeImage.createFromPath(join(ICONS_DIR, "icon.png"));
|
||||
}
|
||||
|
||||
|
|
|
@ -134,7 +134,9 @@ function TrayModalComponent({ modalProps, close }: { modalProps: any; close: ()
|
|||
{Settings[key] && (
|
||||
<Button
|
||||
onClick={() => {
|
||||
Settings.trayMainOverride = false;
|
||||
const iconKey =
|
||||
statusToSettingsKey[iconName as keyof typeof statusToSettingsKey].key;
|
||||
Settings[iconKey] = false;
|
||||
setCurrentTrayIcon();
|
||||
}}
|
||||
look={Button.Looks.LINK}
|
||||
|
|
Loading…
Add table
Reference in a new issue