add copy gpu info option

This commit is contained in:
smartfrigde 2024-03-15 20:13:12 +01:00
parent f84f94a768
commit 6c2141b0a3
5 changed files with 14 additions and 3 deletions

View file

@ -80,5 +80,6 @@
"settings-skipSplash": "Skip Splash Screen (Experimental)",
"settings-skipSplash-desc": "Skips ArmCord splash screen when you start up the app.",
"settings-copyDebugInfo": "Copy Debug Info",
"settings-copyGPUInfo": "Copy GPU Info",
"settings-forceNativeCrash": "Force native crash"
}

View file

@ -25,9 +25,8 @@
color: var(--text-normal);
}
[class|="listItem"]:has([data-list-item-id="guildsnav___app-download-button"]),
[class|="listItem"]:has(+ [class|="listItem"] [data-list-item-id="guildsnav___app-download-button"]) {
display: none;
[data-list-item-id="guildsnav___app-download-button"] {
display: none !important;
}
div#acThemes:after,

View file

@ -185,4 +185,7 @@ export function registerIpc(): void {
}\n\`${settingsFileContent}\``
);
});
ipcMain.on("copyGPUInfo", () => {
clipboard.writeText(JSON.stringify(app.getGPUFeatureStatus()));
});
}

View file

@ -13,6 +13,7 @@ contextBridge.exposeInMainWorld("settings", {
openStorageFolder: () => ipcRenderer.send("openStorageFolder"),
openCrashesFolder: () => ipcRenderer.send("openCrashesFolder"),
copyDebugInfo: () => ipcRenderer.send("copyDebugInfo"),
copyGPUInfo: () => ipcRenderer.send("copyGPUInfo"),
crash: () => ipcRenderer.send("crash"),
os: process.platform
});

View file

@ -246,6 +246,13 @@
onclick="settings.copyDebugInfo()"
></button>
<br />
<button
data-string="settings-copyGPUInfo"
id="settings-copyGPUInfo"
class="center"
onclick="settings.copyGPUInfo()"
></button>
<br />
<button
data-string="settings-forceNativeCrash"
id="settings-forceNativeCrash"