mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 08:32:43 +00:00 
			
		
		
		
	Update Badge<T> instantiations to simply be {}.
This commit is contained in:
		
							parent
							
								
									fa6446fc0d
								
							
						
					
					
						commit
						fdf3608c8a
					
				
					 11 changed files with 23 additions and 23 deletions
				
			
		|  | @ -39,19 +39,19 @@ GAction::GAction(const String& text, const GShortcut& shortcut, RetainPtr<Graphi | |||
| { | ||||
|     if (m_widget) { | ||||
|         m_scope = ShortcutScope::WidgetLocal; | ||||
|         m_widget->register_local_shortcut_action(Badge<GAction>(), *this); | ||||
|         m_widget->register_local_shortcut_action({}, *this); | ||||
|     } else { | ||||
|         m_scope = ShortcutScope::ApplicationGlobal; | ||||
|         GApplication::the().register_global_shortcut_action(Badge<GAction>(), *this); | ||||
|         GApplication::the().register_global_shortcut_action({}, *this); | ||||
|     } | ||||
| } | ||||
| 
 | ||||
| GAction::~GAction() | ||||
| { | ||||
|     if (m_shortcut.is_valid() && m_scope == ShortcutScope::ApplicationGlobal) | ||||
|         GApplication::the().unregister_global_shortcut_action(Badge<GAction>(), *this); | ||||
|         GApplication::the().unregister_global_shortcut_action({}, *this); | ||||
|     if (m_widget && m_scope == ShortcutScope::WidgetLocal) | ||||
|         m_widget->unregister_local_shortcut_action(Badge<GAction>(), *this); | ||||
|         m_widget->unregister_local_shortcut_action({}, *this); | ||||
| } | ||||
| 
 | ||||
| void GAction::activate() | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling