summaryrefslogtreecommitdiff
path: root/windows/profile
diff options
context:
space:
mode:
Diffstat (limited to 'windows/profile')
-rw-r--r--windows/profile/userinfopane.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/windows/profile/userinfopane.cpp b/windows/profile/userinfopane.cpp
index e9309d6..f510f4a 100644
--- a/windows/profile/userinfopane.cpp
+++ b/windows/profile/userinfopane.cpp
@@ -184,8 +184,8 @@ ProfileUserInfoPane::ProfileUserInfoPane(Snowflake ID)
m_created.get_style_context()->add_class("profile-info-created");
m_note.signal_update_note().connect([this](const Glib::ustring &note) {
- auto cb = [this](bool success) {
- if (!success) {
+ auto cb = [this](DiscordError code) {
+ if (code != DiscordError::NONE) {
Gtk::MessageDialog dlg("Failed to set note", false, Gtk::MESSAGE_ERROR, Gtk::BUTTONS_OK, true);
dlg.set_position(Gtk::WIN_POS_CENTER);
dlg.run();