-
Notifications
You must be signed in to change notification settings - Fork 206
Expand file tree
/
Copy pathdesktopSettings.ts
More file actions
51 lines (48 loc) · 2.18 KB
/
desktopSettings.ts
File metadata and controls
51 lines (48 loc) · 2.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import type { TorchPinnedPackages, TorchUpdatePolicy } from '../constants';
import type { GpuType, TorchDeviceType } from '../preload';
export type DesktopInstallState = 'started' | 'installed' | 'upgraded';
export type DesktopWindowStyle = 'custom' | 'default';
export type DesktopSettings = {
basePath?: string;
/**
* The state of the installation.
* - `started`: The installation has started.
* - `installed`: A fresh installation.
* - `upgraded`: An upgrade from a previous version that stores the base path
* in the yaml config.
*/
installState?: DesktopInstallState;
/**
* The path to the migration installation to migrate custom nodes from
*/
migrateCustomNodesFrom?: string;
/**
* The last GPU that was detected during hardware validation.
* Allows manual override of some install behaviour.
*/
detectedGpu?: GpuType;
/** The pytorch device that the user selected during installation. */
selectedDevice?: TorchDeviceType;
/**
* Controls whether to use a custom window on linux/win32
* - `custom`: Modern, theme-reactive, feels like an integral part of the UI
* - `default`: Impersonal, static, plain - default window title bar
*/
windowStyle?: DesktopWindowStyle;
/** The version of comfyui-electron on which the user last consented to metrics. */
versionConsentedMetrics?: string;
/** Whether the user has generated an image successfully. */
hasGeneratedSuccessfully?: boolean;
/** How to handle NVIDIA PyTorch updates. */
torchUpdatePolicy?: TorchUpdatePolicy;
/** The pinned NVIDIA torch package versions when updates are disabled. */
torchPinnedPackages?: TorchPinnedPackages;
/** The recommended NVIDIA torch version tied to the current update decision. */
torchLastPromptedVersion?: string;
/** The recommended NVIDIA torch version whose update failure prompt is suppressed. */
torchUpdateFailureSilencedVersion?: string;
/** The recommended NVIDIA torch version recorded when we first detected an out-of-date torch install. */
torchOutOfDateRecommendedVersion?: string;
/** The torch package versions recorded when we first detected an out-of-date torch install. */
torchOutOfDatePackages?: TorchPinnedPackages;
};