mirror of
https://github.com/Kvan7/Exiled-Exchange-2.git
synced 2026-09-26 06:35:45 +00:00
disable HA by default
This commit is contained in:
@@ -19,6 +19,9 @@ const isDevelopment = process.env.NODE_ENV !== 'production'
|
||||
// Scheme must be registered before the app is ready
|
||||
protocol.registerSchemesAsPrivileged([{ scheme: 'app', privileges: { secure: true, standard: true } }])
|
||||
app.allowRendererProcessReuse = true
|
||||
if (!config.get('hardwareAcceleration')) {
|
||||
app.disableHardwareAcceleration()
|
||||
}
|
||||
|
||||
app.on('ready', async () => {
|
||||
logger.info('App is running', {
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
<div class="px-2 pb-10 bg-gray-900 flex flex-col">
|
||||
<router-link :to="{ name: 'settings.hotkeys' }" class="menu-item">Hotkeys</router-link>
|
||||
<router-link :to="{ name: 'settings.general' }" class="menu-item">General</router-link>
|
||||
<div class="flex-1" style="min-width: 150px;"></div>
|
||||
<router-link :to="{ name: 'settings.debug' }" class="menu-item">Debug</router-link>
|
||||
<div style="min-width: 150px;"></div>
|
||||
</div>
|
||||
<div class="text-gray-100 flex-grow layout-column">
|
||||
<div class="flex-grow overflow-y-auto">
|
||||
|
||||
@@ -8,6 +8,13 @@
|
||||
<ui-radio v-model="config.logLevel" value="silly">Silly</ui-radio>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mb-2">
|
||||
<div class="flex-1 mb-1">Hardware Acceleration <span class="bg-gray-200 text-gray-900 rounded px-1">Restart required</span></div>
|
||||
<div class="mb-4 flex">
|
||||
<ui-radio v-model="config.hardwareAcceleration" :value="true" class="mr-4">Enabled</ui-radio>
|
||||
<ui-radio v-model="config.hardwareAcceleration" :value="false" class="mr-4">Disabled (render on CPU)</ui-radio>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mb-2">
|
||||
<div class="flex-1 mb-1">Shortcut registration</div>
|
||||
<div class="mb-4 flex">
|
||||
|
||||
+3
-1
@@ -18,6 +18,7 @@ export interface Config {
|
||||
windowTitle: string
|
||||
logLevel: string
|
||||
showSeller: false | 'account' | 'ign'
|
||||
hardwareAcceleration: boolean
|
||||
}
|
||||
|
||||
export const defaultConfig: Config = {
|
||||
@@ -36,5 +37,6 @@ export const defaultConfig: Config = {
|
||||
useOsGlobalShortcut: true,
|
||||
windowTitle: 'Path of Exile',
|
||||
logLevel: 'warn',
|
||||
showSeller: false
|
||||
showSeller: false,
|
||||
hardwareAcceleration: false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user