address suggestions
This commit is contained in:
parent
4ed4797600
commit
53e3ef545e
5 changed files with 9 additions and 9 deletions
|
@ -34,3 +34,8 @@ const UserAgents = {
|
|||
};
|
||||
|
||||
export const UserAgent = UserAgents[process.platform] || UserAgents.windows;
|
||||
|
||||
export const enum MessageBoxChoice {
|
||||
Default,
|
||||
Cancel
|
||||
}
|
||||
|
|
|
@ -16,7 +16,6 @@ import {
|
|||
} from "electron";
|
||||
import { rm } from "fs/promises";
|
||||
import { join } from "path";
|
||||
import { MessageBoxChoice } from "shared/browserWinProperties";
|
||||
import { IpcEvents } from "shared/IpcEvents";
|
||||
import { isTruthy } from "shared/utils/guards";
|
||||
import { once } from "shared/utils/once";
|
||||
|
@ -29,6 +28,7 @@ import {
|
|||
DATA_DIR,
|
||||
DEFAULT_HEIGHT,
|
||||
DEFAULT_WIDTH,
|
||||
MessageBoxChoice,
|
||||
MIN_HEIGHT,
|
||||
MIN_WIDTH,
|
||||
UserAgent,
|
||||
|
|
|
@ -6,11 +6,11 @@
|
|||
|
||||
import { exec as callbackExec } from "child_process";
|
||||
import { BrowserWindow, dialog } from "electron";
|
||||
import { MessageBoxChoice } from "shared/browserWinProperties";
|
||||
import { promisify } from "util";
|
||||
|
||||
import { sleep } from "../../shared/utils/sleep";
|
||||
import { MessageBoxChoice } from "../constants";
|
||||
import { Settings } from "../settings";
|
||||
import { sleep } from "./sleep";
|
||||
|
||||
const exec = promisify(callbackExec);
|
||||
|
||||
|
@ -20,7 +20,7 @@ const layoutVersion = 1;
|
|||
const layoutId = "3063409873"; // Vesktop Layout v1
|
||||
const numberRegex = /^[0-9]*$/;
|
||||
|
||||
export const isDeckGameMode = Boolean(process.env.SteamOS === "1" && process.env.SteamGamepadUI === "1");
|
||||
export const isDeckGameMode = process.env.SteamOS === "1" && process.env.SteamGamepadUI === "1";
|
||||
|
||||
export function applyDeckKeyboardFix() {
|
||||
if (!isDeckGameMode) return;
|
||||
|
|
|
@ -16,8 +16,3 @@ export const SplashProps: BrowserWindowConstructorOptions = {
|
|||
maximizable: false,
|
||||
alwaysOnTop: true
|
||||
};
|
||||
|
||||
export const enum MessageBoxChoice {
|
||||
Default,
|
||||
Cancel
|
||||
}
|
||||
|
|
Reference in a new issue