mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	citra_qt: only toggle console if the setting has been changed
This commit is contained in:
		
							parent
							
								
									f9a89ff410
								
							
						
					
					
						commit
						810b86f451
					
				
					 1 changed files with 10 additions and 0 deletions
				
			
		|  | @ -14,6 +14,16 @@ | ||||||
| 
 | 
 | ||||||
| namespace Debugger { | namespace Debugger { | ||||||
| void ToggleConsole() { | void ToggleConsole() { | ||||||
|  |     static bool first_call = true, console_shown = true; | ||||||
|  |     if (!first_call) { | ||||||
|  |         if (console_shown == UISettings::values.show_console) { | ||||||
|  |             return; | ||||||
|  |         } else { | ||||||
|  |             console_shown = UISettings::values.show_console; | ||||||
|  |         } | ||||||
|  |     } else { | ||||||
|  |         first_call = false; | ||||||
|  |     } | ||||||
| #ifdef _WIN32 | #ifdef _WIN32 | ||||||
|     FILE* temp; |     FILE* temp; | ||||||
|     if (UISettings::values.show_console) { |     if (UISettings::values.show_console) { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue