mirror of
https://github.com/RatzzFatzz/MKVAudioSubtitleChanger.git
synced 2026-02-11 02:05:56 +01:00
Reimplement coherent updating
This commit is contained in:
@@ -24,7 +24,7 @@ public class FileInfo {
|
||||
@Getter(AccessLevel.NONE)
|
||||
private final List<TrackAttributes> subtitleTracks = new ArrayList<>();
|
||||
|
||||
private final PlannedChange changes = new PlannedChange();
|
||||
private PlannedChange changes = new PlannedChange();
|
||||
@Setter
|
||||
private AttributeConfig matchedConfig;
|
||||
|
||||
@@ -50,6 +50,10 @@ public class FileInfo {
|
||||
return Collections.unmodifiableList(subtitleTracks);
|
||||
}
|
||||
|
||||
public void resetChanges() {
|
||||
changes = new PlannedChange();
|
||||
}
|
||||
|
||||
public FileStatus getStatus() {
|
||||
if (!changes.isEmpty()) return FileStatus.CHANGE_NECESSARY;
|
||||
if (matchedConfig == null) return FileStatus.NO_SUITABLE_CONFIG;
|
||||
|
||||
Reference in New Issue
Block a user