feat: refactor test notiication event

This commit is contained in:
Zamitto
2025-05-17 19:06:01 -03:00
parent 914942d328
commit ee916b998a
9 changed files with 38 additions and 27 deletions

View File

@@ -338,6 +338,7 @@ declare global {
) => void
) => () => Electron.IpcRenderer;
updateAchievementCustomNotificationWindow: () => Promise<void>;
showAchievementTestNotification: () => Promise<void>;
/* Themes */
addCustomTheme: (theme: Theme) => Promise<void>;

View File

@@ -288,9 +288,7 @@ export function SettingsGeneral() {
<Button
className="settings-general__test-achievement-notification-button"
onClick={() =>
window.electron.updateAchievementCustomNotificationWindow()
}
onClick={() => window.electron.showAchievementTestNotification()}
>
Test Notification
</Button>