revert some changes after the review

pull/591/head
kistlin 2022-01-17 06:53:14 +01:00
rodzic 174158233b
commit 81d23967b6
4 zmienionych plików z 6 dodań i 10 usunięć

Wyświetl plik

@ -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);

Wyświetl plik

@ -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) {

Wyświetl plik

@ -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;
}

Wyświetl plik

@ -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;
}