From 0798eb405f30e0d001ff57259157db5a97a5e6ed Mon Sep 17 00:00:00 2001 From: unknown321 Date: Fri, 17 Jan 2025 19:09:21 +0300 Subject: [PATCH] db character count button --- src/skin.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/skin.h b/src/skin.h index adf2f27..412460b 100644 --- a/src/skin.h +++ b/src/skin.h @@ -135,6 +135,7 @@ struct Skin { std::string logCleanupStatus; std::string logCleanupButtonLabel; std::string refreshStatus; + std::string charactersInDB; void ReloadFont() { std::string filepath{}; @@ -471,7 +472,21 @@ struct Skin { connector->FeatureShowTime(config->features.showTime); } } + + ImGui::TableNextColumn(); ImGui::TableNextColumn(); + if (ImGui::Button("DB char count")) { + std::vector 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();