Settings, queue fixes, and more

This commit is contained in:
2025-07-22 17:22:05 -07:00
parent 7077bf6bea
commit c507a6fbe4
11 changed files with 242 additions and 22 deletions

View File

@@ -0,0 +1,6 @@
export type SettingProps = {
label: string
value: boolean
onChange: (val: boolean) => void,
className?: string
}

View File

@@ -1,6 +1,7 @@
export class SettingsType {
constructor (
public checkForNewVersionOnLoad: boolean = true,
public useWineOnUnixWhenNeeded: boolean = false
public allowNotifications: boolean = true,
public useWineOnUnixWhenNeeded: boolean = false,
) {}
}

View File

@@ -0,0 +1,14 @@
import { LauncherVersion } from './LauncherVersion'
export class VersionsConfig {
constructor (
public version: string,
public list: LauncherVersion[] = []
) {}
static import (data: any) {
const cfg = new VersionsConfig(data.version)
Object.assign(cfg.list, data.list)
return cfg
}
}