From 956969f67945e3c52b160b64fba3879420832a2e Mon Sep 17 00:00:00 2001 From: Starman0620 <28871190+Starman0620@users.noreply.github.com> Date: Wed, 21 Apr 2021 19:25:15 -0400 Subject: [PATCH] Removed discord-integration GUI element This was done because there's no point in having an enable/disable checkbox when the module itself isn't even loaded on default. --- discord-integration/src/main.cpp | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/discord-integration/src/main.cpp b/discord-integration/src/main.cpp index 6d7ad9d9..517493d8 100644 --- a/discord-integration/src/main.cpp +++ b/discord-integration/src/main.cpp @@ -11,7 +11,7 @@ SDRPP_MOD_INFO { /* Name: */ "discord-integration", /* Description: */ "Discord Rich Presence module for SDR++", /* Author: */ "Starman0620 & Ryzerth", - /* Version: */ 0, 0, 1, + /* Version: */ 0, 0, 2, /* Max instances */ 1 }; @@ -28,7 +28,6 @@ class PresenceModule : public ModuleManager::Instance { public: PresenceModule(std::string name) { this->name = name; - gui::menu.registerEntry(name, menuHandler, this, this); workerRunning = true; workerThread = std::thread(&PresenceModule::worker, this); @@ -70,20 +69,6 @@ private: } } - static void menuHandler(void* ctx) { - PresenceModule* _this = (PresenceModule*)ctx; - if (!_this->enabled) { style::beginDisabled(); } - - float menuWidth = ImGui::GetContentRegionAvailWidth(); - - // GUI - // For now this is empty, it's just left in so the toggle checkbox remains. - ImGui::BeginGroup(); - ImGui::EndGroup(); - - if (!_this->enabled) { style::endDisabled(); } - } - static void updatePresence() { if (gui::freqSelect.frequency != lastFreq) { presence.details = "Listening"; // This really doesn't need to be re-set each time but it'll remain since it will be used once proper status can be displayed