MCPcopy Create free account
hub / github.com/FlashpointProject/launcher / parseMainWindow

Function parseMainWindow

src/shared/preferences/util.ts:350–356  ·  view source on GitHub ↗
(parser: IObjectParserProp<any>, output: AppPreferencesDataMainWindow)

Source from the content-addressed store, hash-verified

348}
349
350function parseMainWindow(parser: IObjectParserProp<any>, output: AppPreferencesDataMainWindow): void {
351 parser.prop('x', v => output.x = num(v), true);
352 parser.prop('y', v => output.y = num(v), true);
353 parser.prop('width', v => output.width = num(v), true);
354 parser.prop('height', v => output.height = num(v), true);
355 parser.prop('maximized', v => output.maximized = !!v);
356}
357
358function parseAppPathOverride(parser: IObjectParserProp<any>): AppPathOverride {
359 const override: AppPathOverride = {

Callers 1

overwritePreferenceDataFunction · 0.85

Calls 2

numFunction · 0.85
propMethod · 0.65

Tested by

no test coverage detected