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-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" | ||||
| } | ||||
|  |  | |||
|  | @ -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, | ||||
|  |  | |||
|  | @ -185,4 +185,7 @@ export function registerIpc(): void { | |||
|             }\n\`${settingsFileContent}\`` | ||||
|         ); | ||||
|     }); | ||||
|     ipcMain.on("copyGPUInfo", () => { | ||||
|         clipboard.writeText(JSON.stringify(app.getGPUFeatureStatus())); | ||||
|     }); | ||||
| } | ||||
|  |  | |||
|  | @ -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 | ||||
| }); | ||||
|  |  | |||
|  | @ -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" | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue