consider window focus change events
This commit is contained in:
		
							parent
							
								
									f457ac5e23
								
							
						
					
					
						commit
						300b5961e0
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		|  | @ -1,6 +1,7 @@ | |||
| // Manage all entries. 
 | ||||
| 
 | ||||
| import Tabs from "/scripts/GUI/tabs.js"; | ||||
| import Window from "/scripts/GUI/window.js"; | ||||
| import MenuEntry from "./menu.js"; | ||||
| import ManagedSidebar from "./sidebar.js"; | ||||
| import IconIndicator from "./icons.js"; | ||||
|  | @ -23,6 +24,7 @@ export default class EntryManager { | |||
|      #listen() { | ||||
|           Tabs.addActionListener(`onActivated`, (data) => {this.onRefresh()}); | ||||
|           Tabs.addActionListener(`onUpdated`, (data) => {this.onRefresh()}); | ||||
|           Window.addActionListener(`onFocusChanged`, (data) => {this.onRefresh()}); | ||||
|      } | ||||
| 
 | ||||
|      async onRefresh() { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue