mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-11-04 15:11:31 +08:00 
			
		
		
		
	Fix useless separator in the global menu when running under Electron
This commit is contained in:
		
							parent
							
								
									ae85bffd08
								
							
						
					
					
						commit
						bd2bcb7c97
					
				@ -252,7 +252,7 @@ const TPL = `
 | 
			
		||||
            <span class="version-text"></span>
 | 
			
		||||
        </li>
 | 
			
		||||
 | 
			
		||||
        <div class="dropdown-divider"></div>
 | 
			
		||||
        <div class="dropdown-divider logout-button-separator"></div>
 | 
			
		||||
 | 
			
		||||
        <li class="dropdown-item logout-button" data-trigger-command="logout">
 | 
			
		||||
            <span class="bx bx-log-out"></span>
 | 
			
		||||
@ -281,6 +281,8 @@ export default class GlobalMenuWidget extends BasicWidget {
 | 
			
		||||
        const isElectron = utils.isElectron();
 | 
			
		||||
 | 
			
		||||
        this.$widget.find(".logout-button").toggle(!isElectron);
 | 
			
		||||
        this.$widget.find(".logout-button-separator").toggle(!isElectron);
 | 
			
		||||
 | 
			
		||||
        this.$widget.find(".open-dev-tools-button").toggle(isElectron);
 | 
			
		||||
        this.$widget.find(".switch-to-mobile-version-button").toggle(!isElectron && utils.isDesktop());
 | 
			
		||||
        this.$widget.find(".switch-to-desktop-version-button").toggle(!isElectron && utils.isMobile());
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user