parent
840da146b9
commit
bfa20f2634
@ -38,6 +38,7 @@ export interface Settings {
|
|||||||
frameless: boolean;
|
frameless: boolean;
|
||||||
transparent: boolean;
|
transparent: boolean;
|
||||||
winCtrlQ: boolean;
|
winCtrlQ: boolean;
|
||||||
|
disableMinSize: boolean;
|
||||||
winNativeTitleBar: boolean;
|
winNativeTitleBar: boolean;
|
||||||
plugins: {
|
plugins: {
|
||||||
[plugin: string]: {
|
[plugin: string]: {
|
||||||
@ -71,6 +72,7 @@ const DefaultSettings: Settings = {
|
|||||||
frameless: false,
|
frameless: false,
|
||||||
transparent: false,
|
transparent: false,
|
||||||
winCtrlQ: false,
|
winCtrlQ: false,
|
||||||
|
disableMinSize: false,
|
||||||
winNativeTitleBar: false,
|
winNativeTitleBar: false,
|
||||||
plugins: {},
|
plugins: {},
|
||||||
|
|
||||||
|
@ -83,6 +83,11 @@ function VencordSettings() {
|
|||||||
key: "winCtrlQ",
|
key: "winCtrlQ",
|
||||||
title: "Register Ctrl+Q as shortcut to close Discord (Alternative to Alt+F4)",
|
title: "Register Ctrl+Q as shortcut to close Discord (Alternative to Alt+F4)",
|
||||||
note: "Requires a full restart"
|
note: "Requires a full restart"
|
||||||
|
},
|
||||||
|
IS_DISCORD_DESKTOP && {
|
||||||
|
key: "disableMinSize",
|
||||||
|
title: "Disable minimum window size",
|
||||||
|
note: "Requires a full restart"
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -106,10 +106,17 @@ if (!IS_VANILLA) {
|
|||||||
BrowserWindow
|
BrowserWindow
|
||||||
};
|
};
|
||||||
|
|
||||||
// Patch appSettings to force enable devtools
|
// Patch appSettings to force enable devtools and optionally disable min size
|
||||||
onceDefined(global, "appSettings", s =>
|
onceDefined(global, "appSettings", s => {
|
||||||
s.set("DANGEROUS_ENABLE_DEVTOOLS_ONLY_ENABLE_IF_YOU_KNOW_WHAT_YOURE_DOING", true)
|
s.set("DANGEROUS_ENABLE_DEVTOOLS_ONLY_ENABLE_IF_YOU_KNOW_WHAT_YOURE_DOING", true);
|
||||||
);
|
if (settings.disableMinSize) {
|
||||||
|
s.set("MIN_WIDTH", 0);
|
||||||
|
s.set("MIN_HEIGHT", 0);
|
||||||
|
} else {
|
||||||
|
s.set("MIN_WIDTH", 940);
|
||||||
|
s.set("MIN_HEIGHT", 500);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
process.env.DATA_DIR = join(app.getPath("userData"), "..", "Vencord");
|
process.env.DATA_DIR = join(app.getPath("userData"), "..", "Vencord");
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user