mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 13:41:03 +00:00 
			
		
		
		
	Fix theme application in various editor dialogs
99% of the time we shouldn't rely on the signal, we should use the notification instead. I left some comments in places where I couldn't quickly improve the code.
This commit is contained in:
		
							parent
							
								
									d76c1d0e51
								
							
						
					
					
						commit
						01888ae7ab
					
				
					 12 changed files with 54 additions and 73 deletions
				
			
		|  | @ -713,6 +713,9 @@ void Path3DEditorPlugin::_notification(int p_what) { | |||
| 		} break; | ||||
| 
 | ||||
| 		case NOTIFICATION_READY: { | ||||
| 			// FIXME: This can trigger theme updates when the nodes that we want to update are not yet available.
 | ||||
| 			// The toolbar should be extracted to a dedicated control and theme updates should be handled through
 | ||||
| 			// the notification.
 | ||||
| 			Node3DEditor::get_singleton()->connect("theme_changed", callable_mp(this, &Path3DEditorPlugin::_update_theme)); | ||||
| 		} break; | ||||
| 	} | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Yuri Sizov
						Yuri Sizov