mirror of
https://github.com/uowuo/abaddon.git
synced 2026-08-15 05:19:58 +00:00
disconnecting clears the channel listing
This commit is contained in:
1 parent
69404a97cd
commit
0cd0260f2e
5 files changed
+29
-8
No files matched your search
+5
-5
@@ -27,7 +27,7 @@ int Abaddon::StartGTK() {
|
||||
m_main_window->SetAbaddon(this);
|
||||
m_main_window->set_title("Abaddon");
|
||||
m_main_window->show();
|
||||
m_main_window->UpdateMenuStatus();
|
||||
m_main_window->UpdateComponents();
|
||||
|
||||
m_gtk_app->signal_shutdown().connect([&]() {
|
||||
StopDiscord();
|
||||
@@ -70,19 +70,19 @@ const DiscordClient &Abaddon::GetDiscordClient() const {
|
||||
}
|
||||
|
||||
void Abaddon::DiscordNotifyReady() {
|
||||
m_main_window->UpdateChannelListing();
|
||||
m_main_window->UpdateComponents();
|
||||
}
|
||||
|
||||
void Abaddon::ActionConnect() {
|
||||
if (!m_discord.IsStarted())
|
||||
StartDiscord();
|
||||
m_main_window->UpdateMenuStatus();
|
||||
m_main_window->UpdateComponents();
|
||||
}
|
||||
|
||||
void Abaddon::ActionDisconnect() {
|
||||
if (m_discord.IsStarted())
|
||||
StopDiscord();
|
||||
m_main_window->UpdateMenuStatus();
|
||||
m_main_window->UpdateComponents();
|
||||
}
|
||||
|
||||
void Abaddon::ActionSetToken() {
|
||||
@@ -90,7 +90,7 @@ void Abaddon::ActionSetToken() {
|
||||
auto response = dlg.run();
|
||||
if (response == Gtk::RESPONSE_OK) {
|
||||
m_discord_token = dlg.GetToken();
|
||||
m_main_window->UpdateMenuStatus();
|
||||
m_main_window->UpdateComponents();
|
||||
m_settings.SetSetting("discord", "token", m_discord_token);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user