allow limiting concurrent http requests

add Semaphore
update SettingsManager a little
This commit is contained in:
ouwou committed 2020-10-04 02:28:48 -04:00
1 parent bbe36a8246
commit 43f87b4bca
7 files changed
+67 -9

No files matched your search

+5 -1
View File
@@ -85,7 +85,7 @@ int Abaddon::StartGTK() {
}
void Abaddon::LoadFromSettings() {
std::string token = m_settings.GetSetting("discord", "token");
std::string token = m_settings.GetSettingString("discord", "token");
if (token.size()) {
m_discord_token = token;
m_discord.UpdateToken(m_discord_token);
@@ -150,6 +150,10 @@ void Abaddon::DiscordOnGuildDelete(Snowflake guild_id) {
m_main_window->UpdateChannelListing();
}
const SettingsManager &Abaddon::GetSettings() const {
return m_settings;
}
void Abaddon::ActionConnect() {
if (!m_discord.IsStarted())
StartDiscord();