1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-11-23 05:03:36 +03:00

UI switch for --disable-gpu - #5131, #3499

This commit is contained in:
Eugene Pankov 2021-12-19 18:11:43 +01:00
parent 5249a9076a
commit e90db7f07f
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4
3 changed files with 22 additions and 0 deletions

View File

@ -70,6 +70,10 @@ export class Application {
app.commandLine.appendSwitch('enable-transparent-visuals')
app.disableHardwareAcceleration()
}
if (this.configStore.hacks?.disableGPU) {
app.commandLine.appendSwitch('disable-gpu')
app.disableHardwareAcceleration()
}
}
this.userPluginsPath = path.join(

View File

@ -36,3 +36,5 @@ vault: null
encrypted: false
enableExperimentalFeatures: false
pluginBlacklist: []
hacks:
disableGPU: false

View File

@ -98,6 +98,8 @@ h3.mb-3 Window
)
| Full
h3.mt-4 Docking
.form-line(*ngIf='docking')
.header
.title Dock the terminal
@ -211,6 +213,8 @@ h3.mb-3 Window
(ngModelChange)='saveConfiguration(); ',
)
h3.mt-4 Tabs
.form-line
.header
.title Tabs location
@ -288,3 +292,15 @@ h3.mb-3 Window
[(ngModel)]='config.store.terminal.hideCloseButton',
(ngModelChange)='config.save();',
)
h3.mt-4 Hacks
.form-line
.header
.title Disable GPU acceleration
.description Tick this if you're experiencing aliasing, ghosting or other visual issues
toggle(
[(ngModel)]='config.store.hacks.disableGPU',
(ngModelChange)='config.save(); config.requestRestart()'
)