Refresh model online state before switching resolutions
This commit is contained in:
parent
367bec664c
commit
798f950a95
|
@ -567,7 +567,7 @@ public class RecordedModelsTab extends Tab implements TabSelectionListener {
|
||||||
|
|
||||||
private void switchStreamSource(JavaFxModel fxModel) {
|
private void switchStreamSource(JavaFxModel fxModel) {
|
||||||
try {
|
try {
|
||||||
if (!fxModel.isOnline()) {
|
if (!fxModel.isOnline(true)) {
|
||||||
Alert alert = new AutosizeAlert(Alert.AlertType.INFORMATION, getTabPane().getScene());
|
Alert alert = new AutosizeAlert(Alert.AlertType.INFORMATION, getTabPane().getScene());
|
||||||
alert.setTitle("Switch resolution");
|
alert.setTitle("Switch resolution");
|
||||||
alert.setHeaderText("Couldn't switch stream resolution");
|
alert.setHeaderText("Couldn't switch stream resolution");
|
||||||
|
|
Loading…
Reference in New Issue