mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 04:51:31 +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. |          * 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) | ||||||
|  | |||||||
| @ -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"> | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran