Сделал сворачивание через меню настроек.

This commit is contained in:
2024-03-20 23:32:24 +03:00
parent 7bfb980d69
commit 34df30fcd5
17 changed files with 101 additions and 132 deletions

View File

@@ -135,6 +135,9 @@ public class TestingForm implements FormWithSplitters, TestingWindow {
Global.testingServer.db.sapforConfigurationCommands.mountUI(sapforConfigurationCommandsPanel);
Global.testingServer.db.serverSapfors.mountUI(serverSapforsPanel);
Global.testingServer.db.sapforPackages.mountUI(sapforPackagesPanel);
//--
if (Global.properties.collapseCredentials)
CollapseCredentials();
}
//-
@Override
@@ -305,7 +308,6 @@ public class TestingForm implements FormWithSplitters, TestingWindow {
credentialsPanel.add(UI.credentialsBar);
SC71.setDividerLocation(30);
SC71.setDividerSize(0);
//SC71.setEnabled(false);
credentialsPanel.revalidate();
credentialsPanel.repaint();
}
@@ -314,19 +316,8 @@ public class TestingForm implements FormWithSplitters, TestingWindow {
UI.Clear(credentialsPanel);
credentialsPanel.add(SC18);
SC71.setDividerLocation(200);
//SC71.setEnabled(true);
SC71.setDividerSize(3);
credentialsPanel.revalidate();
credentialsPanel.repaint();
}
@Override
public void SwitchCredentials(boolean flag) {
if (flag) {
ExpandCredentials();
} else {
CollapseCredentials();
}
Global.properties.collapseCredentials = !flag;
Global.properties.Update();
}
}