Settings, queue fixes, and more
This commit is contained in:
6
src/types/SettingProps.ts
Normal file
6
src/types/SettingProps.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
export type SettingProps = {
|
||||
label: string
|
||||
value: boolean
|
||||
onChange: (val: boolean) => void,
|
||||
className?: string
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
export class SettingsType {
|
||||
constructor (
|
||||
public checkForNewVersionOnLoad: boolean = true,
|
||||
public useWineOnUnixWhenNeeded: boolean = false
|
||||
public allowNotifications: boolean = true,
|
||||
public useWineOnUnixWhenNeeded: boolean = false,
|
||||
) {}
|
||||
}
|
||||
|
||||
14
src/types/VersionsConfig.ts
Normal file
14
src/types/VersionsConfig.ts
Normal 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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user