dont notify if message channel is focused

This commit is contained in:
ouwou committed 2023-03-01 01:01:44 -05:00
1 parent e37901bbbb
commit a09ad5cec0
3 files changed
+12

No files matched your search

+8
View File
@@ -696,6 +696,14 @@ Glib::RefPtr<Gtk::Application> Abaddon::GetApp() {
return m_gtk_app;
}
bool Abaddon::IsMainWindowActive() {
return m_main_window->has_toplevel_focus();
}
Snowflake Abaddon::GetActiveChannelID() const noexcept {
return m_main_window->GetChatActiveChannel();
}
void Abaddon::ActionConnect() {
if (!m_discord.IsStarted())
StartDiscord();