Fix LayoutSaver not restoring geometry correctly

"normalGeometry" was repeated twice due to typo
This commit is contained in:
Sergio Martins
2022-06-05 13:31:08 +01:00
parent a88beb7574
commit f9efe2755e

View File

@@ -229,7 +229,7 @@ void from_json(const nlohmann::json &json, LayoutSaver::FloatingWindow &window)
{
window.multiSplitterLayout = json.value("multiSplitterLayout", LayoutSaver::MultiSplitter());
window.parentIndex = json.value("parentIndex", -1);
window.geometry = json.value("normalGeometry", QRect());
window.geometry = json.value("geometry", QRect());
window.normalGeometry = json.value("normalGeometry", QRect());
window.screenIndex = json.value("screenIndex", 0);
window.screenSize = json.value("screenSize", QSize(800, 600));