summaryrefslogtreecommitdiff
path: root/windows/guildsettings/infopane.cpp
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2021-04-12 03:00:31 -0400
committerouwou <26526779+ouwou@users.noreply.github.com>2021-04-12 03:00:31 -0400
commit15d0a45627b0a11e785da5712a803a45fa8ed50e (patch)
tree3606427ba9e5c1fae44ecd6ee8db3990f577ad78 /windows/guildsettings/infopane.cpp
parentbf9b053d365344476b13e837f0b9da28cf8220f9 (diff)
downloadabaddon-portaudio-15d0a45627b0a11e785da5712a803a45fa8ed50e.tar.gz
abaddon-portaudio-15d0a45627b0a11e785da5712a803a45fa8ed50e.zip
center dialogs and fix warning
Diffstat (limited to 'windows/guildsettings/infopane.cpp')
-rw-r--r--windows/guildsettings/infopane.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/windows/guildsettings/infopane.cpp b/windows/guildsettings/infopane.cpp
index d173614..07c0318 100644
--- a/windows/guildsettings/infopane.cpp
+++ b/windows/guildsettings/infopane.cpp
@@ -103,6 +103,7 @@ void GuildSettingsInfoPane::UpdateGuildName() {
if (!success) {
m_guild_name.set_text(Abaddon::Get().GetDiscordClient().GetGuild(GuildID)->Name);
Gtk::MessageDialog dlg("Failed to set guild name", false, Gtk::MESSAGE_ERROR, Gtk::BUTTONS_OK, true);
+ dlg.set_position(Gtk::WIN_POS_CENTER);
dlg.run();
}
};
@@ -116,6 +117,7 @@ void GuildSettingsInfoPane::UpdateGuildIconFromData(const std::vector<uint8_t> &
auto cb = [this](bool success) {
if (!success) {
Gtk::MessageDialog dlg("Failed to set guild icon", false, Gtk::MESSAGE_ERROR, Gtk::BUTTONS_OK, true);
+ dlg.set_position(Gtk::WIN_POS_CENTER);
dlg.run();
}
};