mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
fix(electron): native title buttons not working on Linux
This commit is contained in:
parent
d97737756c
commit
1929d34f88
@ -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.
|
||||
*/
|
||||
const fullWidthTabBar = (launcherPaneIsHorizontal || (isElectron && !hasNativeTitleBar && isMac));
|
||||
const customTitleBarButtons = (hasNativeTitleBar && !isMac && !isWindows);
|
||||
const customTitleBarButtons = (!hasNativeTitleBar && !isMac && !isWindows);
|
||||
|
||||
return new RootContainer(true)
|
||||
.setParent(appContext)
|
||||
|
@ -1,7 +1,6 @@
|
||||
import BasicWidget from "./basic_widget.js";
|
||||
import options from "../services/options.js";
|
||||
import utils from "../services/utils.js";
|
||||
import { t } from "../services/i18n.js";
|
||||
|
||||
const TPL = `
|
||||
<div class="title-bar-buttons">
|
||||
|
Loading…
x
Reference in New Issue
Block a user