Remove unnecessary config pass
This commit is contained in:
		
							parent
							
								
									417addab36
								
							
						
					
					
						commit
						df3ee3366f
					
				| 
						 | 
					@ -53,7 +53,7 @@ static inline void logs_window(bool* show_logs_window) {
 | 
				
			||||||
    ImGui::End();
 | 
					    ImGui::End();
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static inline void main_window(Config& active_config, bool* show_settings_window, bool* show_logs_window, bool* run_event_loop) {
 | 
					static inline void main_window(bool* show_settings_window, bool* show_logs_window, bool* run_event_loop) {
 | 
				
			||||||
    if (!ImGui::Begin("LogMeow", run_event_loop)) {
 | 
					    if (!ImGui::Begin("LogMeow", run_event_loop)) {
 | 
				
			||||||
        ImGui::End();
 | 
					        ImGui::End();
 | 
				
			||||||
        return;
 | 
					        return;
 | 
				
			||||||
| 
						 | 
					@ -127,5 +127,5 @@ void event_loop(Config& config, float* config_write_timer, bool* run_event_loop)
 | 
				
			||||||
        logs_window(&show_logs_window);
 | 
					        logs_window(&show_logs_window);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    main_window(config, &show_settings_window, &show_logs_window, run_event_loop);
 | 
					    main_window(&show_settings_window, &show_logs_window, run_event_loop);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue