fix(electron): native title buttons not working on Linux

This commit is contained in:
Elian Doran 2024-12-09 10:28:09 +02:00
parent d97737756c
commit 1929d34f88
No known key found for this signature in database
2 changed files with 1 additions and 2 deletions

View File

@ -106,7 +106,7 @@ export default class DesktopLayout {
* On macOS we need to force the full-width tab bar on Electron in order to allow the semaphore (window controls) enough space. * On macOS we need to force the full-width tab bar on Electron in order to allow the semaphore (window controls) enough space.
*/ */
const fullWidthTabBar = (launcherPaneIsHorizontal || (isElectron && !hasNativeTitleBar && isMac)); const fullWidthTabBar = (launcherPaneIsHorizontal || (isElectron && !hasNativeTitleBar && isMac));
const customTitleBarButtons = (hasNativeTitleBar && !isMac && !isWindows); const customTitleBarButtons = (!hasNativeTitleBar && !isMac && !isWindows);
return new RootContainer(true) return new RootContainer(true)
.setParent(appContext) .setParent(appContext)

View File

@ -1,7 +1,6 @@
import BasicWidget from "./basic_widget.js"; import BasicWidget from "./basic_widget.js";
import options from "../services/options.js"; import options from "../services/options.js";
import utils from "../services/utils.js"; import utils from "../services/utils.js";
import { t } from "../services/i18n.js";
const TPL = ` const TPL = `
<div class="title-bar-buttons"> <div class="title-bar-buttons">