Fixed Clone tag

This commit is contained in:
Jindra Petřík
2022-12-18 23:10:24 +01:00
parent a62f43dccf
commit 0b51c26abf
6 changed files with 64 additions and 27 deletions
@@ -118,7 +118,7 @@ public class Frame implements TreeItem, Exportable {
public boolean isAllInnerTagsModified() {
for (Tag t : allInnerTags) {
if (t.isModified()) {
if (t.isModified() && !t.isReadOnly()) {
return true;
}
}
@@ -128,12 +128,12 @@ public class Frame implements TreeItem, Exportable {
@Override
public boolean isModified() {
for (Tag t : innerTags) {
if (t.isModified()) {
if (t.isModified() && !t.isReadOnly()) {
return true;
}
}
for (Tag t : actions) {
if (t.isModified()) {
if (t.isModified() && !t.isReadOnly()) {
return true;
}
}
@@ -142,7 +142,7 @@ public class Frame implements TreeItem, Exportable {
return true;
}
}
if (showFrameTag != null && showFrameTag.isModified()) {
if (showFrameTag != null && showFrameTag.isModified() && !showFrameTag.isReadOnly()) {
return true;
}
return false;