mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	hide loader only once the initial note is loaded
This commit is contained in:
		| @@ -91,7 +91,12 @@ function isElectron() { | ||||
|     return window && window.process && window.process.type; | ||||
| } | ||||
|  | ||||
| $(document).ready(() => { | ||||
| let appShown = false; | ||||
|  | ||||
| function showAppIfHidden() { | ||||
|     if (!appShown) { | ||||
|         appShown = true; | ||||
|  | ||||
|         $("#container").show(); | ||||
|  | ||||
|         // Get a reference to the loader's div | ||||
| @@ -101,6 +106,8 @@ $(document).ready(() => { | ||||
|         loaderDiv.addEventListener("transitionend", function(){ | ||||
|             loaderDiv.style.display = "none"; | ||||
|         }, true); | ||||
|  | ||||
|         // Kick off the CSS transition | ||||
|         loaderDiv.style.opacity = 0.0; | ||||
| }); | ||||
|     } | ||||
| } | ||||
| @@ -227,6 +227,8 @@ const noteEditor = (function() { | ||||
|         noteChangeDisabled = false; | ||||
|  | ||||
|         setNoteBackgroundIfEncrypted(currentNote); | ||||
|  | ||||
|         showAppIfHidden(); | ||||
|     } | ||||
|  | ||||
|     async function loadNote(noteId) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user