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

@@ -178,6 +178,7 @@ void GuildSettingsEmojisPane::OnEditName(Snowflake id, const std::string &name)
const auto cb = [this](bool success) {
if (!success) {
Gtk::MessageDialog dlg("Failed to set emoji name", false, Gtk::MESSAGE_ERROR, Gtk::BUTTONS_OK);
dlg.set_position(Gtk::WIN_POS_CENTER);
dlg.run();
}
};
@@ -200,6 +201,7 @@ void GuildSettingsEmojisPane::OnMenuDelete() {
const auto cb = [this](bool success) {
if (!success) {
Gtk::MessageDialog dlg("Failed to delete emoji", false, Gtk::MESSAGE_ERROR, Gtk::BUTTONS_OK);
dlg.set_position(Gtk::WIN_POS_CENTER);
dlg.run();
}
};