mirror of
				https://github.com/AlexandreRouma/SDRPlusPlus.git
				synced 2025-10-31 00:48:11 +01:00 
			
		
		
		
	revert some changes after the review
This commit is contained in:
		| @@ -36,7 +36,7 @@ void ConfigManager::load(json def, bool lock) { | ||||
|         file >> conf; | ||||
|         file.close(); | ||||
|     } | ||||
|     catch (const std::exception& e) { | ||||
|     catch (std::exception e) { | ||||
|         spdlog::error("Config file '{0}' is corrupted, resetting it", path); | ||||
|         conf = def; | ||||
|         save(false); | ||||
|   | ||||
| @@ -337,7 +337,7 @@ int sdrpp_main(int argc, char* argv[]) { | ||||
| #else | ||||
|     const char* glsl_version = "#version 120"; | ||||
|     GLFWmonitor* monitor = NULL; | ||||
|     for (size_t i = 0; i < OPENGL_VERSION_COUNT; i++) { | ||||
|     for (int i = 0; i < OPENGL_VERSION_COUNT; i++) { | ||||
|         glsl_version = OPENGL_VERSIONS_GLSL[i]; | ||||
|         glfwWindowHint(GLFW_CLIENT_API, OPENGL_VERSIONS_IS_ES[i] ? GLFW_OPENGL_ES_API : GLFW_OPENGL_API); | ||||
|         glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, OPENGL_VERSIONS_MAJOR[i]); | ||||
| @@ -450,12 +450,8 @@ int sdrpp_main(int argc, char* argv[]) { | ||||
|     bandplan::loadColorTable(bandColors); | ||||
|  | ||||
|     bool _maximized = maximized; | ||||
|     int fsWidth = 0; | ||||
|     int fsHeight = 0; | ||||
|     int fsPosX = 0; | ||||
|     int fsPosY = 0; | ||||
|     int _winWidth = 0; | ||||
|     int _winHeight = 0; | ||||
|     int fsWidth, fsHeight, fsPosX, fsPosY; | ||||
|     int _winWidth, _winHeight; | ||||
|     glfwGetWindowSize(core::window, &_winWidth, &_winHeight); | ||||
|  | ||||
|     if (fullScreen) { | ||||
|   | ||||
| @@ -487,7 +487,7 @@ void MainWindow::draw() { | ||||
|         if (gui::menu.draw(firstMenuRender)) { | ||||
|             core::configManager.acquire(); | ||||
|             json arr = json::array(); | ||||
|             for (size_t i = 0; i < gui::menu.order.size(); i++) { | ||||
|             for (int i = 0; i < gui::menu.order.size(); i++) { | ||||
|                 arr[i]["name"] = gui::menu.order[i].name; | ||||
|                 arr[i]["open"] = gui::menu.order[i].open; | ||||
|             } | ||||
|   | ||||
| @@ -288,7 +288,7 @@ namespace net { | ||||
|                 } | ||||
|                 entry.handler(std::move(client), entry.ctx); | ||||
|             } | ||||
|             catch (const std::exception& e) { | ||||
|             catch (std::exception e) { | ||||
|                 listening = false; | ||||
|                 return; | ||||
|             } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user