From e0e0a6c76708fdf12113bf1b5c4ee96eacc35cae Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Wed, 21 Dec 2022 21:49:18 -0500 Subject: add option to dump ready payload because thats useful --- src/windows/mainwindow.cpp | 6 ++++++ src/windows/mainwindow.hpp | 1 + 2 files changed, 7 insertions(+) (limited to 'src/windows') diff --git a/src/windows/mainwindow.cpp b/src/windows/mainwindow.cpp index 8a85d49..f1d16ec 100644 --- a/src/windows/mainwindow.cpp +++ b/src/windows/mainwindow.cpp @@ -255,8 +255,10 @@ void MainWindow::SetupMenu() { m_menu_file.set_submenu(m_menu_file_sub); m_menu_file_reload_css.set_label("Reload CSS"); m_menu_file_clear_cache.set_label("Clear file cache"); + m_menu_file_dump_ready.set_label("Dump ready message"); m_menu_file_sub.append(m_menu_file_reload_css); m_menu_file_sub.append(m_menu_file_clear_cache); + m_menu_file_sub.append(m_menu_file_dump_ready); m_menu_view.set_label("View"); m_menu_view.set_submenu(m_menu_view_sub); @@ -335,6 +337,10 @@ void MainWindow::SetupMenu() { Abaddon::Get().GetImageManager().ClearCache(); }); + m_menu_file_dump_ready.signal_toggled().connect([this]() { + Abaddon::Get().GetDiscordClient().SetDumpReady(m_menu_file_dump_ready.get_active()); + }); + m_menu_discord_add_recipient.signal_activate().connect([this] { m_signal_action_add_recipient.emit(GetChatActiveChannel()); }); diff --git a/src/windows/mainwindow.hpp b/src/windows/mainwindow.hpp index 78e0115..35ca7f1 100644 --- a/src/windows/mainwindow.hpp +++ b/src/windows/mainwindow.hpp @@ -72,6 +72,7 @@ private: Gtk::Menu m_menu_file_sub; Gtk::MenuItem m_menu_file_reload_css; Gtk::MenuItem m_menu_file_clear_cache; + Gtk::CheckMenuItem m_menu_file_dump_ready; Gtk::MenuItem m_menu_view; Gtk::Menu m_menu_view_sub; -- cgit v1.2.3