mirror of
				https://github.com/arcan1s/awesome-widgets.git
				synced 2025-10-31 13:13:41 +00:00 
			
		
		
		
	add delayed initialization
This workaround probably will fix issue with the recent plasma when plasmashell fails to load sometimes.
This commit is contained in:
		| @ -63,6 +63,7 @@ Item { | ||||
|         "notify": plasmoid.configuration.notify | ||||
|     } | ||||
|  | ||||
|     signal initWidget | ||||
|     signal needTextUpdate(string newText) | ||||
|     signal needToolTipUpdate(string newText) | ||||
|     signal sizeUpdate | ||||
| @ -131,10 +132,22 @@ Item { | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     Timer { | ||||
|         id: timer | ||||
|         interval: 3000 | ||||
|         onTriggered: initWidget() | ||||
|     } | ||||
|  | ||||
|  | ||||
|     Component.onCompleted: { | ||||
|         if (debug) console.debug() | ||||
|  | ||||
|         timer.start() | ||||
|     } | ||||
|  | ||||
|     onInitWidget: { | ||||
|         if (debug) console.debug() | ||||
|  | ||||
|         // actions | ||||
|         // it makes no sense to use this field with optimization enable | ||||
|         if (!plasmoid.configuration.optimize) | ||||
|  | ||||
		Reference in New Issue
	
	Block a user