adjust event description when locked

This commit is contained in:
Armin Schrenk
2025-02-28 10:21:27 +01:00
parent 40df3d015a
commit 6d9704ffa2
3 changed files with 20 additions and 19 deletions

View File

@@ -165,7 +165,6 @@ public class EventListCellController implements FxController {
if (vaultUnlocked.getValue()) {
return eventMessage.getValue();
} else {
var e = event.getValue();
return resourceBundle.getString("event.vaultLocked.message");
}
}
@@ -174,7 +173,8 @@ public class EventListCellController implements FxController {
if (vaultUnlocked.getValue()) {
return eventDescription.getValue();
} else {
return resourceBundle.getString("event.vaultLocked.description");
var e = event.getValue();
return resourceBundle.getString("event.vaultLocked.description").formatted(e != null? e.v().getDisplayName():"");
}
}