Undo context menu widget layering workaround now that the issue is fixed (#4768)

This commit is contained in:
absidue
2024-03-19 08:47:47 +08:00
committed by GitHub
parent d4d8bf0512
commit 4c47987bde
-4
View File
@@ -174,10 +174,6 @@ function runApp() {
app.commandLine.appendSwitch('enable-features', 'VaapiVideoDecodeLinuxGL')
}
// Work around for context menus in the devtools being displayed behind the window
// https://github.com/electron/electron/issues/38790
app.commandLine.appendSwitch('disable-features', 'WidgetLayering')
// command line switches need to be added before the app ready event first
// that means we can't use the normal settings system as that is asynchronous,
// doing it synchronously ensures that we add it before the event fires