From 97e852cf94090d8d64a92d59068c1792628f809c Mon Sep 17 00:00:00 2001 From: Jas Singh Date: Sun, 22 Dec 2024 13:42:47 -0800 Subject: [PATCH] Remove timeout from Hyprpanel notifications. (#597) --- src/components/menus/network/wifi/APStaging/PasswordInput.tsx | 1 - src/components/menus/network/wifi/WirelessAPs/helpers.ts | 1 - src/components/settings/shared/FileChooser.ts | 3 --- src/lib/behaviors/batteryWarning.ts | 1 - src/lib/utils.ts | 1 - src/scss/optionsTrackers.ts | 1 - src/services/matugen/index.ts | 1 - 7 files changed, 9 deletions(-) diff --git a/src/components/menus/network/wifi/APStaging/PasswordInput.tsx b/src/components/menus/network/wifi/APStaging/PasswordInput.tsx index b75da89..db86b87 100644 --- a/src/components/menus/network/wifi/APStaging/PasswordInput.tsx +++ b/src/components/menus/network/wifi/APStaging/PasswordInput.tsx @@ -29,7 +29,6 @@ export const PasswordInput = ({ connecting, staging }: PasswordInputProps): JSX. Notify({ summary: 'Network', body: err.message, - timeout: 5000, }); }) .then(() => { diff --git a/src/components/menus/network/wifi/WirelessAPs/helpers.ts b/src/components/menus/network/wifi/WirelessAPs/helpers.ts index e7f0c91..d368bf9 100644 --- a/src/components/menus/network/wifi/WirelessAPs/helpers.ts +++ b/src/components/menus/network/wifi/WirelessAPs/helpers.ts @@ -239,7 +239,6 @@ export const connectToAP = (accessPoint: AstalNetwork.AccessPoint, event: Astal. Notify({ summary: 'Network', body: err.message, - timeout: 5000, }); } }); diff --git a/src/components/settings/shared/FileChooser.ts b/src/components/settings/shared/FileChooser.ts index e408a4f..8e3e141 100644 --- a/src/components/settings/shared/FileChooser.ts +++ b/src/components/settings/shared/FileChooser.ts @@ -200,7 +200,6 @@ export const saveFileDialog = (filePath: string, themeOnly: boolean): void => { summary: 'File Saved Successfully', body: `At ${finalFilePath}.`, iconName: icons.ui.info, - timeout: 5000, }); } catch (e) { if (e instanceof Error) { @@ -244,7 +243,6 @@ export const importFiles = (themeOnly: boolean = false): void => { summary: 'Failed to import', body: 'No file selected.', iconName: icons.ui.warning, - timeout: 5000, }); return; } @@ -260,7 +258,6 @@ export const importFiles = (themeOnly: boolean = false): void => { summary: `Importing ${themeOnly ? 'Theme' : 'Config'}`, body: `Importing: ${filePath}`, iconName: icons.ui.info, - timeout: 7000, }); const tmpConfigFile = Gio.File.new_for_path(`${TMP}/config.json`); diff --git a/src/lib/behaviors/batteryWarning.ts b/src/lib/behaviors/batteryWarning.ts index 419157d..09c51a8 100644 --- a/src/lib/behaviors/batteryWarning.ts +++ b/src/lib/behaviors/batteryWarning.ts @@ -44,7 +44,6 @@ export function warnOnLowBattery(): void { body: lowBatteryNotificationText.get().replace('$POWER_LEVEL', batteryPercentage.toString()), iconName: icons.ui.warning, urgency: 'critical', - timeout: 7000, }); } }); diff --git a/src/lib/utils.ts b/src/lib/utils.ts index b1c8326..55d3dc1 100644 --- a/src/lib/utils.ts +++ b/src/lib/utils.ts @@ -198,7 +198,6 @@ export function dependencies(...bins: string[]): boolean { summary: 'Dependencies not found!', body: `The following dependencies are missing: ${missing.join(', ')}`, iconName: icons.ui.warning, - timeout: 7000, }); } diff --git a/src/scss/optionsTrackers.ts b/src/scss/optionsTrackers.ts index d46d863..e1154bd 100644 --- a/src/scss/optionsTrackers.ts +++ b/src/scss/optionsTrackers.ts @@ -13,7 +13,6 @@ const ensureMatugenWallpaper = (): void => { summary: 'Matugen Failed', body: "Please select a wallpaper in 'Theming > General' first.", iconName: icons.ui.warning, - timeout: 7000, }); matugen.set(false); } diff --git a/src/services/matugen/index.ts b/src/services/matugen/index.ts index f5bdc09..062ae01 100644 --- a/src/services/matugen/index.ts +++ b/src/services/matugen/index.ts @@ -24,7 +24,6 @@ export async function generateMatugenColors(): Promise General' first.", iconName: icons.ui.warning, - timeout: 7000, }); return; }