1
0
mirror of synced 2025-01-18 00:56:49 +01:00

fix: Writing X coord of window position to settings (#1442)

The entry is "hex.builtin.setting.interface.window." but I think it
should be "hex.builtin.setting.interface.window.x"
This commit is contained in:
paxcut 2023-11-22 04:47:28 -07:00 committed by GitHub
parent 095da62250
commit ae24ccdfe6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1254,7 +1254,7 @@ namespace hex {
glfwGetWindowSize(this->m_window, &width, &height);
maximized = glfwGetWindowAttrib(this->m_window, GLFW_MAXIMIZED);
ContentRegistry::Settings::write("hex.builtin.setting.interface", "hex.builtin.setting.interface.window.", x);
ContentRegistry::Settings::write("hex.builtin.setting.interface", "hex.builtin.setting.interface.window.x", x);
ContentRegistry::Settings::write("hex.builtin.setting.interface", "hex.builtin.setting.interface.window.y", y);
ContentRegistry::Settings::write("hex.builtin.setting.interface", "hex.builtin.setting.interface.window.width", width);
ContentRegistry::Settings::write("hex.builtin.setting.interface", "hex.builtin.setting.interface.window.height", height);