mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-24 19:31:03 +00:00
feat: refactor test notiication event
This commit is contained in:
1
src/renderer/src/declaration.d.ts
vendored
1
src/renderer/src/declaration.d.ts
vendored
@@ -338,6 +338,7 @@ declare global {
|
||||
) => void
|
||||
) => () => Electron.IpcRenderer;
|
||||
updateAchievementCustomNotificationWindow: () => Promise<void>;
|
||||
showAchievementTestNotification: () => Promise<void>;
|
||||
|
||||
/* Themes */
|
||||
addCustomTheme: (theme: Theme) => Promise<void>;
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user