Puck detection dialog is maximized
This commit is contained in:
@@ -57,6 +57,7 @@ import javax.swing.table.DefaultTableModel;
|
||||
*/
|
||||
public class Controller {
|
||||
|
||||
final boolean DIALOG_PUCK_LOAD_SHOW_BASEPLATE = true;
|
||||
static Controller instance;
|
||||
final BasePlate basePlate;
|
||||
RoomTemperatureBasePlate roomTemperatureBasePlate;
|
||||
@@ -735,13 +736,23 @@ public class Controller {
|
||||
if ( hasLoadDialog()) {
|
||||
if (puckLoading) {
|
||||
showDialogPuckLoading();
|
||||
mainFrame.setViewDesign();
|
||||
if (!DIALOG_PUCK_LOAD_SHOW_BASEPLATE){
|
||||
mainFrame.setViewDesign();
|
||||
}
|
||||
} else {
|
||||
hideDialogPuckLoading();
|
||||
mainFrame.setViewCamera();
|
||||
if (!DIALOG_PUCK_LOAD_SHOW_BASEPLATE){
|
||||
mainFrame.setViewCamera();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (puckLoading) {
|
||||
if ((dialogPuckLoading != null) && (dialogPuckLoading.isVisible())) {
|
||||
dialogPuckLoading.restore();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -854,7 +865,7 @@ public class Controller {
|
||||
if ((dialogPuckLoading != null) && (dialogPuckLoading.isVisible())) {
|
||||
return;
|
||||
}
|
||||
dialogPuckLoading = new PuckLoadingDialog(mainFrame.getTopLevel(), false, false, true);
|
||||
dialogPuckLoading = new PuckLoadingDialog(mainFrame.getTopLevel(), false, false, DIALOG_PUCK_LOAD_SHOW_BASEPLATE);
|
||||
dialogPuckLoading.setVisible(true);
|
||||
checkPuckDetectionEnabling();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user