Fix cancel/OK button order on macOS

The macOS platform convention regarding button order is cancel on left,
OK on right.
This commit is contained in:
Daniel Ting 2020-07-08 18:02:38 -05:00
parent dcd11faad3
commit 9605fc54c7
17 changed files with 27 additions and 27 deletions

View file

@ -669,7 +669,7 @@ ShaderEditor::ShaderEditor(EditorNode *p_node) {
disk_changed->connect("confirmed", callable_mp(this, &ShaderEditor::_reload_shader_from_disk));
disk_changed->get_ok()->set_text(TTR("Reload"));
disk_changed->add_button(TTR("Resave"), !DisplayServer::get_singleton()->get_swap_ok_cancel(), "resave");
disk_changed->add_button(TTR("Resave"), !DisplayServer::get_singleton()->get_swap_cancel_ok(), "resave");
disk_changed->connect("custom_action", callable_mp(this, &ShaderEditor::save_external_data));
add_child(disk_changed);