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.
This commit is contained in:
Starman0620 2021-04-21 19:25:15 -04:00
parent 7ee86a5d40
commit 956969f679

View File

@ -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