mirror of
https://github.com/uowuo/abaddon.git
synced 2026-08-15 05:19:58 +00:00
make vad method a setting and tie it to combobox
This commit is contained in:
1 parent
203e566919
commit
60e3f73324
6 files changed
+44
-18
No files matched your search
+6
-3
@@ -23,11 +23,11 @@
|
||||
#include "remoteauth/remoteauthdialog.hpp"
|
||||
|
||||
#ifdef WITH_LIBHANDY
|
||||
#include <handy.h>
|
||||
#include <handy.h>
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
#pragma comment(lib, "crypt32.lib")
|
||||
#pragma comment(lib, "crypt32.lib")
|
||||
#endif
|
||||
|
||||
Abaddon::Abaddon()
|
||||
@@ -67,7 +67,7 @@ Abaddon::Abaddon()
|
||||
if (!accessible)
|
||||
m_channels_requested.erase(id);
|
||||
});
|
||||
if (GetSettings().Prefetch)
|
||||
if (GetSettings().Prefetch) {
|
||||
m_discord.signal_message_create().connect([this](const Message &message) {
|
||||
if (message.Author.HasAvatar())
|
||||
m_img_mgr.Prefetch(message.Author.GetAvatarURL());
|
||||
@@ -76,6 +76,9 @@ Abaddon::Abaddon()
|
||||
m_img_mgr.Prefetch(attachment.ProxyURL);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
m_audio.SetVADMethod(GetSettings().VAD);
|
||||
}
|
||||
|
||||
Abaddon &Abaddon::Get() {
|
||||
|
||||
Reference in new issue
Block a user