center dialogs and fix warning

This commit is contained in:
ouwou
2021-04-12 03:00:31 -04:00
parent bf9b053d36
commit 15d0a45627
5 changed files with 15 additions and 1 deletions

View File

@@ -96,6 +96,7 @@ void GuildSettingsBansPane::OnMenuUnban() {
auto cb = [this](bool success) {
if (!success) {
Gtk::MessageDialog dlg("Failed to unban user", false, Gtk::MESSAGE_ERROR, Gtk::BUTTONS_OK, true);
dlg.set_position(Gtk::WIN_POS_CENTER);
dlg.run();
}
};