Fix MV Live models not showing up as recording
MV Live models with spaces in the name would not show up as recording.
This commit is contained in:
parent
337b096568
commit
c7e39fdd98
|
@ -1,5 +1,6 @@
|
||||||
package ctbrec.ui.tabs;
|
package ctbrec.ui.tabs;
|
||||||
|
|
||||||
|
import static ctbrec.Recording.State.*;
|
||||||
import static ctbrec.SubsequentAction.*;
|
import static ctbrec.SubsequentAction.*;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
@ -561,9 +562,7 @@ public class RecordedModelsTab extends Tab implements TabSelectionListener {
|
||||||
.map(JavaFxModel::new)
|
.map(JavaFxModel::new)
|
||||||
.peek(fxm -> {
|
.peek(fxm -> {
|
||||||
for (Recording recording : recordings) {
|
for (Recording recording : recordings) {
|
||||||
if(recording.getStatus() == Recording.State.RECORDING &&
|
if(recording.getStatus() == RECORDING && Objects.equals(recording.getModel(), fxm)){
|
||||||
recording.getModel().getName().equals(fxm.getSanitizedNamed()))
|
|
||||||
{
|
|
||||||
fxm.getRecordingProperty().set(true);
|
fxm.getRecordingProperty().set(true);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -171,7 +171,7 @@ public abstract class AbstractModel implements Model {
|
||||||
if (getName() == null) {
|
if (getName() == null) {
|
||||||
if (other.getName() != null)
|
if (other.getName() != null)
|
||||||
return false;
|
return false;
|
||||||
} else if (!getName().equals(other.getName()))
|
} else if (!getSanitizedNamed().equals(other.getSanitizedNamed()))
|
||||||
return false;
|
return false;
|
||||||
if (getUrl() == null) {
|
if (getUrl() == null) {
|
||||||
if (other.getUrl() != null)
|
if (other.getUrl() != null)
|
||||||
|
|
Loading…
Reference in New Issue