mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-03-21 00:11:27 -07:00
Overlay 2.0 (#12)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import type { ConfigValidationWarning } from '../../types';
|
||||
import {
|
||||
buildConfigWarningDialogDetails,
|
||||
buildConfigParseErrorDetails,
|
||||
buildConfigWarningNotificationBody,
|
||||
buildConfigWarningSummary,
|
||||
@@ -60,6 +61,12 @@ export function createReloadConfigHandler(deps: ReloadConfigRuntimeDeps): () =>
|
||||
deps.showDesktopNotification('SubMiner', {
|
||||
body: buildConfigWarningNotificationBody(result.path, result.warnings),
|
||||
});
|
||||
if (process.platform === 'darwin') {
|
||||
deps.failHandlers.showErrorBox(
|
||||
'SubMiner config validation warning',
|
||||
buildConfigWarningDialogDetails(result.path, result.warnings),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
deps.startConfigHotReload();
|
||||
|
||||
Reference in New Issue
Block a user