Skip to content

Commit

Permalink
db character count button
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown321 committed Jan 17, 2025
1 parent a8fc5fd commit 0798eb4
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/skin.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ struct Skin {
std::string logCleanupStatus;
std::string logCleanupButtonLabel;
std::string refreshStatus;
std::string charactersInDB;

void ReloadFont() {
std::string filepath{};
Expand Down Expand Up @@ -471,7 +472,21 @@ struct Skin {
connector->FeatureShowTime(config->features.showTime);
}
}

ImGui::TableNextColumn();
ImGui::TableNextColumn();
if (ImGui::Button("DB char count")) {
std::vector<uint32_t> chars;
getCharRange(&chars);
charactersInDB = std::to_string(chars.size());
}

ImGui::TableNextColumn();
ImGui::Text(charactersInDB.c_str());
ImGui::SameLine(20);
if (ImGui::InvisibleButton("##charactersInDBCount", ImVec2(246, 30))) {
charactersInDB = "";
}

ImGui::TableNextRow();
ImGui::TableNextColumn();
Expand Down

0 comments on commit 0798eb4

Please sign in to comment.