summaryrefslogtreecommitdiff
path: root/windows/profile/mutualfriendspane.hpp
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2021-03-17 02:19:15 -0400
committerouwou <26526779+ouwou@users.noreply.github.com>2021-03-17 02:19:15 -0400
commit65943b4bd74ae52e6f6ffbff0e9ba619053172d6 (patch)
tree2dccda0581fab9379bde1586aa1c63079f555099 /windows/profile/mutualfriendspane.hpp
parent72d771d88b625cf29913ab02497aa8f331c247e5 (diff)
downloadabaddon-portaudio-65943b4bd74ae52e6f6ffbff0e9ba619053172d6.tar.gz
abaddon-portaudio-65943b4bd74ae52e6f6ffbff0e9ba619053172d6.zip
reduce concurrent requests in guild settings + profile
disable gtk's treeview search in bans+invites
Diffstat (limited to 'windows/profile/mutualfriendspane.hpp')
-rw-r--r--windows/profile/mutualfriendspane.hpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/windows/profile/mutualfriendspane.hpp b/windows/profile/mutualfriendspane.hpp
index 70774a7..10daa39 100644
--- a/windows/profile/mutualfriendspane.hpp
+++ b/windows/profile/mutualfriendspane.hpp
@@ -1,5 +1,6 @@
#pragma once
#include <gtkmm.h>
+#include "../../components/inotifyswitched.hpp"
#include "../../discord/objects.hpp"
class MutualFriendItem : public Gtk::Box {
@@ -11,14 +12,18 @@ private:
Gtk::Label m_name;
};
-class MutualFriendsPane : public Gtk::ScrolledWindow {
+class MutualFriendsPane : public Gtk::ScrolledWindow, public INotifySwitched {
public:
MutualFriendsPane(Snowflake id);
- void SetMutualFriends(const std::vector<UserData> &users);
-
Snowflake UserID;
private:
+ void on_switched_to() override;
+
+ bool m_requested = false;
+
+ void OnFetchRelationships(const std::vector<UserData> &users);
+
Gtk::ListBox m_list;
};