mirror of
https://github.com/smartfrigde/armcord.git
synced 2024-08-14 23:56:58 +00:00
add copy gpu info option
This commit is contained in:
parent
f84f94a768
commit
6c2141b0a3
5 changed files with 14 additions and 3 deletions
|
@ -80,5 +80,6 @@
|
||||||
"settings-skipSplash": "Skip Splash Screen (Experimental)",
|
"settings-skipSplash": "Skip Splash Screen (Experimental)",
|
||||||
"settings-skipSplash-desc": "Skips ArmCord splash screen when you start up the app.",
|
"settings-skipSplash-desc": "Skips ArmCord splash screen when you start up the app.",
|
||||||
"settings-copyDebugInfo": "Copy Debug Info",
|
"settings-copyDebugInfo": "Copy Debug Info",
|
||||||
|
"settings-copyGPUInfo": "Copy GPU Info",
|
||||||
"settings-forceNativeCrash": "Force native crash"
|
"settings-forceNativeCrash": "Force native crash"
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,9 +25,8 @@
|
||||||
color: var(--text-normal);
|
color: var(--text-normal);
|
||||||
}
|
}
|
||||||
|
|
||||||
[class|="listItem"]:has([data-list-item-id="guildsnav___app-download-button"]),
|
[data-list-item-id="guildsnav___app-download-button"] {
|
||||||
[class|="listItem"]:has(+ [class|="listItem"] [data-list-item-id="guildsnav___app-download-button"]) {
|
display: none !important;
|
||||||
display: none;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
div#acThemes:after,
|
div#acThemes:after,
|
||||||
|
|
|
@ -185,4 +185,7 @@ export function registerIpc(): void {
|
||||||
}\n\`${settingsFileContent}\``
|
}\n\`${settingsFileContent}\``
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
ipcMain.on("copyGPUInfo", () => {
|
||||||
|
clipboard.writeText(JSON.stringify(app.getGPUFeatureStatus()));
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,6 +13,7 @@ contextBridge.exposeInMainWorld("settings", {
|
||||||
openStorageFolder: () => ipcRenderer.send("openStorageFolder"),
|
openStorageFolder: () => ipcRenderer.send("openStorageFolder"),
|
||||||
openCrashesFolder: () => ipcRenderer.send("openCrashesFolder"),
|
openCrashesFolder: () => ipcRenderer.send("openCrashesFolder"),
|
||||||
copyDebugInfo: () => ipcRenderer.send("copyDebugInfo"),
|
copyDebugInfo: () => ipcRenderer.send("copyDebugInfo"),
|
||||||
|
copyGPUInfo: () => ipcRenderer.send("copyGPUInfo"),
|
||||||
crash: () => ipcRenderer.send("crash"),
|
crash: () => ipcRenderer.send("crash"),
|
||||||
os: process.platform
|
os: process.platform
|
||||||
});
|
});
|
||||||
|
|
|
@ -246,6 +246,13 @@
|
||||||
onclick="settings.copyDebugInfo()"
|
onclick="settings.copyDebugInfo()"
|
||||||
></button>
|
></button>
|
||||||
<br />
|
<br />
|
||||||
|
<button
|
||||||
|
data-string="settings-copyGPUInfo"
|
||||||
|
id="settings-copyGPUInfo"
|
||||||
|
class="center"
|
||||||
|
onclick="settings.copyGPUInfo()"
|
||||||
|
></button>
|
||||||
|
<br />
|
||||||
<button
|
<button
|
||||||
data-string="settings-forceNativeCrash"
|
data-string="settings-forceNativeCrash"
|
||||||
id="settings-forceNativeCrash"
|
id="settings-forceNativeCrash"
|
||||||
|
|
Loading…
Reference in a new issue