Remove timeout from Hyprpanel notifications. (#597)
This commit is contained in:
@@ -29,7 +29,6 @@ export const PasswordInput = ({ connecting, staging }: PasswordInputProps): JSX.
|
|||||||
Notify({
|
Notify({
|
||||||
summary: 'Network',
|
summary: 'Network',
|
||||||
body: err.message,
|
body: err.message,
|
||||||
timeout: 5000,
|
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
|||||||
@@ -239,7 +239,6 @@ export const connectToAP = (accessPoint: AstalNetwork.AccessPoint, event: Astal.
|
|||||||
Notify({
|
Notify({
|
||||||
summary: 'Network',
|
summary: 'Network',
|
||||||
body: err.message,
|
body: err.message,
|
||||||
timeout: 5000,
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -200,7 +200,6 @@ export const saveFileDialog = (filePath: string, themeOnly: boolean): void => {
|
|||||||
summary: 'File Saved Successfully',
|
summary: 'File Saved Successfully',
|
||||||
body: `At ${finalFilePath}.`,
|
body: `At ${finalFilePath}.`,
|
||||||
iconName: icons.ui.info,
|
iconName: icons.ui.info,
|
||||||
timeout: 5000,
|
|
||||||
});
|
});
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
if (e instanceof Error) {
|
if (e instanceof Error) {
|
||||||
@@ -244,7 +243,6 @@ export const importFiles = (themeOnly: boolean = false): void => {
|
|||||||
summary: 'Failed to import',
|
summary: 'Failed to import',
|
||||||
body: 'No file selected.',
|
body: 'No file selected.',
|
||||||
iconName: icons.ui.warning,
|
iconName: icons.ui.warning,
|
||||||
timeout: 5000,
|
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -260,7 +258,6 @@ export const importFiles = (themeOnly: boolean = false): void => {
|
|||||||
summary: `Importing ${themeOnly ? 'Theme' : 'Config'}`,
|
summary: `Importing ${themeOnly ? 'Theme' : 'Config'}`,
|
||||||
body: `Importing: ${filePath}`,
|
body: `Importing: ${filePath}`,
|
||||||
iconName: icons.ui.info,
|
iconName: icons.ui.info,
|
||||||
timeout: 7000,
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const tmpConfigFile = Gio.File.new_for_path(`${TMP}/config.json`);
|
const tmpConfigFile = Gio.File.new_for_path(`${TMP}/config.json`);
|
||||||
|
|||||||
@@ -44,7 +44,6 @@ export function warnOnLowBattery(): void {
|
|||||||
body: lowBatteryNotificationText.get().replace('$POWER_LEVEL', batteryPercentage.toString()),
|
body: lowBatteryNotificationText.get().replace('$POWER_LEVEL', batteryPercentage.toString()),
|
||||||
iconName: icons.ui.warning,
|
iconName: icons.ui.warning,
|
||||||
urgency: 'critical',
|
urgency: 'critical',
|
||||||
timeout: 7000,
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -198,7 +198,6 @@ export function dependencies(...bins: string[]): boolean {
|
|||||||
summary: 'Dependencies not found!',
|
summary: 'Dependencies not found!',
|
||||||
body: `The following dependencies are missing: ${missing.join(', ')}`,
|
body: `The following dependencies are missing: ${missing.join(', ')}`,
|
||||||
iconName: icons.ui.warning,
|
iconName: icons.ui.warning,
|
||||||
timeout: 7000,
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ const ensureMatugenWallpaper = (): void => {
|
|||||||
summary: 'Matugen Failed',
|
summary: 'Matugen Failed',
|
||||||
body: "Please select a wallpaper in 'Theming > General' first.",
|
body: "Please select a wallpaper in 'Theming > General' first.",
|
||||||
iconName: icons.ui.warning,
|
iconName: icons.ui.warning,
|
||||||
timeout: 7000,
|
|
||||||
});
|
});
|
||||||
matugen.set(false);
|
matugen.set(false);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,7 +24,6 @@ export async function generateMatugenColors(): Promise<MatugenColors | undefined
|
|||||||
summary: 'Matugen Failed',
|
summary: 'Matugen Failed',
|
||||||
body: "Please select a wallpaper in 'Theming > General' first.",
|
body: "Please select a wallpaper in 'Theming > General' first.",
|
||||||
iconName: icons.ui.warning,
|
iconName: icons.ui.warning,
|
||||||
timeout: 7000,
|
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user