Skip to content

Commit

Permalink
[minor] Changed the text used for displaying sequence reference count
Browse files Browse the repository at this point in the history
  • Loading branch information
RawPowerLaxity committed Dec 6, 2023
1 parent fb639fd commit 7409bf2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions SIDFactoryII/source/runtime/editor/screens/screen_edit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2171,8 +2171,11 @@ namespace Editor
m_CPUMemory->Lock();
std::vector<int> sequence_index_use_count = DriverUtils::GetSequenceUsageCount(*m_DriverInfo, *m_CPUMemory);
m_CPUMemory->Unlock();
std::string text = " Sequence index: " + EditorUtils::ConvertToHexValue(inSequenceIndex, m_DisplayState.IsHexUppercase()) + " use count: " + std::to_string(sequence_index_use_count[inSequenceIndex]);


const int usage_count = sequence_index_use_count[inSequenceIndex];
const bool usage_count_plural = usage_count > 1;

const std::string text = " Sequence " + EditorUtils::ConvertToHexValue(inSequenceIndex, m_DisplayState.IsHexUppercase()) + " referenced " + std::to_string(sequence_index_use_count[inSequenceIndex]) + (usage_count_plural ? " times." : " time.");
SetStatusBarMessage(text, 5000);
}
}
Expand Down

0 comments on commit 7409bf2

Please sign in to comment.