more documentation on maximize panel

This commit is contained in:
itsmattkc
2019-03-26 14:15:21 +11:00
parent 675ea942f1
commit 5b08914e18
+4 -1
View File
@@ -1080,10 +1080,13 @@ void MainWindow::maximize_panel() {
// store the current state of panels
temp_panel_state = saveState();
// remove all dock widgets
// remove all dock widgets that aren't the hovered panel
for (int i=0;i<olive::panels.size();i++) {
if (olive::panels.at(i) != focused_panel) {
// hide the panel
olive::panels.at(i)->setVisible(false);
// set it to floating
olive::panels.at(i)->setFloating(true);
}
}