Reverting not swapping the sidebar at load.
Some checks failed
continuous-integration/drone/push Build is failing

As the bug is *still* very much present.
Notably when you load a graph from command line arguments.
This commit is contained in:
Adsooi 2022-10-19 01:18:25 +02:00
parent 4564d5446f
commit 971a9d10d2
Signed by: Ad5001
GPG key ID: 7251B1AF90B960F9

View file

@ -276,15 +276,15 @@ ApplicationWindow {
history.unserialize(...data["history"])
// Refreshing sidebar
//if(sidebarSelector.currentIndex == 0) {
// // For some reason, if we load a file while the tab is on object,
// // we get stuck in a Qt-side loop? Qt bug or side-effect here, I don't know.
// sidebarSelector.currentIndex = 1
// objectLists.update()
// delayRefreshTimer.start()
//} else {
if(sidebarSelector.currentIndex == 0) {
// For some reason, if we load a file while the tab is on object,
// we get stuck in a Qt-side loop? Qt bug or side-effect here, I don't know.
sidebarSelector.currentIndex = 1
objectLists.update()
//}
delayRefreshTimer.start()
} else {
objectLists.update()
}
} else {
error = qsTr("Invalid file provided.")
}