mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2024-11-10 12:47:40 +01:00
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:
parent
7ee86a5d40
commit
956969f679
@ -11,7 +11,7 @@ SDRPP_MOD_INFO {
|
|||||||
/* Name: */ "discord-integration",
|
/* Name: */ "discord-integration",
|
||||||
/* Description: */ "Discord Rich Presence module for SDR++",
|
/* Description: */ "Discord Rich Presence module for SDR++",
|
||||||
/* Author: */ "Starman0620 & Ryzerth",
|
/* Author: */ "Starman0620 & Ryzerth",
|
||||||
/* Version: */ 0, 0, 1,
|
/* Version: */ 0, 0, 2,
|
||||||
/* Max instances */ 1
|
/* Max instances */ 1
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -28,7 +28,6 @@ class PresenceModule : public ModuleManager::Instance {
|
|||||||
public:
|
public:
|
||||||
PresenceModule(std::string name) {
|
PresenceModule(std::string name) {
|
||||||
this->name = name;
|
this->name = name;
|
||||||
gui::menu.registerEntry(name, menuHandler, this, this);
|
|
||||||
|
|
||||||
workerRunning = true;
|
workerRunning = true;
|
||||||
workerThread = std::thread(&PresenceModule::worker, this);
|
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() {
|
static void updatePresence() {
|
||||||
if (gui::freqSelect.frequency != lastFreq) {
|
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
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user