mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 14:20:04 +00:00 
			
		
		
		
	Refactor settings to be managed by singletons
This commit is contained in:
		
							parent
							
								
									acc782b2bc
								
							
						
					
					
						commit
						b66ca2cb09
					
				
					 21 changed files with 138 additions and 133 deletions
				
			
		|  | @ -1,10 +1,10 @@ | |||
| #include "alert_dock_widget.hpp" | ||||
| #include "ui_alert_dock_widget.h" | ||||
| 
 | ||||
| #include <scwx/qt/manager/settings_manager.hpp> | ||||
| #include <scwx/qt/manager/text_event_manager.hpp> | ||||
| #include <scwx/qt/model/alert_model.hpp> | ||||
| #include <scwx/qt/model/alert_proxy_model.hpp> | ||||
| #include <scwx/qt/settings/general_settings.hpp> | ||||
| #include <scwx/qt/types/alert_types.hpp> | ||||
| #include <scwx/qt/types/qt_types.hpp> | ||||
| #include <scwx/qt/ui/alert_dialog.hpp> | ||||
|  | @ -175,10 +175,10 @@ void AlertDockWidgetImpl::ConnectSignals() | |||
|               // If an item is selected
 | ||||
|               if (selectedAlertKey_ != types::TextEventKey {}) | ||||
|               { | ||||
|                  types::AlertAction alertAction = types::GetAlertAction( | ||||
|                     manager::SettingsManager::general_settings() | ||||
|                        .default_alert_action() | ||||
|                        .GetValue()); | ||||
|                  types::AlertAction alertAction = | ||||
|                     types::GetAlertAction(settings::GeneralSettings::Instance() | ||||
|                                              .default_alert_action() | ||||
|                                              .GetValue()); | ||||
| 
 | ||||
|                  switch (alertAction) | ||||
|                  { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat