codex items: mark unread if already known so that it reopens
This commit is contained in:
parent
80109a8181
commit
6fc52e2fe7
@ -33,6 +33,7 @@ void CodexItem::fireTriggered() {
|
|||||||
if (codexLearned) {
|
if (codexLearned) {
|
||||||
player->queueUIMessage(Root::singleton().assets()->json("/codex.config:messages.learned").toString());
|
player->queueUIMessage(Root::singleton().assets()->json("/codex.config:messages.learned").toString());
|
||||||
} else {
|
} else {
|
||||||
|
player->codexes()->markCodexUnread(m_codexId);
|
||||||
player->queueUIMessage(Root::singleton().assets()->json("/codex.config:messages.alreadyKnown").toString());
|
player->queueUIMessage(Root::singleton().assets()->json("/codex.config:messages.alreadyKnown").toString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user