disable HA by default

This commit is contained in:
Alexander Drozdov
2020-03-19 16:52:30 +02:00
parent dd57bdd688
commit 657de218ae
4 changed files with 14 additions and 2 deletions
+3
View File
@@ -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', {
+1 -1
View File
@@ -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">
+7
View File
@@ -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
View File
@@ -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
}