forked from j62/ctbrec
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;
|
||||
|
||||
import static ctbrec.Recording.State.*;
|
||||
import static ctbrec.SubsequentAction.*;
|
||||
|
||||
import java.io.IOException;
|
||||
|
@ -561,9 +562,7 @@ public class RecordedModelsTab extends Tab implements TabSelectionListener {
|
|||
.map(JavaFxModel::new)
|
||||
.peek(fxm -> {
|
||||
for (Recording recording : recordings) {
|
||||
if(recording.getStatus() == Recording.State.RECORDING &&
|
||||
recording.getModel().getName().equals(fxm.getSanitizedNamed()))
|
||||
{
|
||||
if(recording.getStatus() == RECORDING && Objects.equals(recording.getModel(), fxm)){
|
||||
fxm.getRecordingProperty().set(true);
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -171,7 +171,7 @@ public abstract class AbstractModel implements Model {
|
|||
if (getName() == null) {
|
||||
if (other.getName() != null)
|
||||
return false;
|
||||
} else if (!getName().equals(other.getName()))
|
||||
} else if (!getSanitizedNamed().equals(other.getSanitizedNamed()))
|
||||
return false;
|
||||
if (getUrl() == null) {
|
||||
if (other.getUrl() != null)
|
||||
|
|
Loading…
Reference in New Issue