Remove subscription levels; license valid = subscribed

This commit is contained in:
NeilClack
2026-08-15 00:54:24 -05:00
parent 8ca60de647
commit f14bf3e29a
19 changed files with 136 additions and 1534 deletions
-11
View File
@@ -7,7 +7,6 @@
#include "date_format.h"
#include "audio/audio_downloader.h"
#include "db/db_keys.h"
#include "network/license_service.h"
#include "network/proclamation_sync.h"
#include <SDL3/SDL.h>
#include <SDL3_image/SDL_image.h>
@@ -218,20 +217,12 @@ void Home::render(SDL_Renderer *renderer)
break;
}
int subscriptionLevelId = state_
? radiantwave::license::getStoredSubscriptionLevelId(state_->db)
: 0;
std::string subscriptionValue = subscriptionLevelId > 0
? radiantwave::license::subscriptionLevelName(subscriptionLevelId)
: std::string("Not set");
time_t now = std::time(nullptr);
std::vector<std::string> names = {
"Version:",
"License:",
"Key:",
"Email:",
"Subscription:",
"WiFi:",
"Internet:",
"Audio:",
@@ -243,7 +234,6 @@ void Home::render(SDL_Renderer *renderer)
licenseValue,
license_.empty() ? std::string("Not set") : license_,
email_.empty() ? std::string("Not set") : email_,
subscriptionValue,
ssid_.empty() ? std::string("Not connected") : ssid_,
internet_ ? std::string("Connected") : std::string("Offline"),
audioStatus(),
@@ -377,7 +367,6 @@ void Home::createTextures(AppState &state)
"License:",
"Key:",
"Email:",
"Subscription:",
"WiFi:",
"Internet:",
"Audio:",