diff options
author | Daniel Ting <danielzting@gmail.com> | 2020-07-08 18:02:38 -0500 |
---|---|---|
committer | Daniel Ting <danielzting@gmail.com> | 2020-07-10 15:10:11 -0500 |
commit | 9605fc54c790b1c4364bc0eddfcdd65f979bfc21 (patch) | |
tree | 114b5d6f9f3172275b9ce2e513b0b5c29a182271 /scene/gui/dialogs.h | |
parent | dcd11faad3802679a43b27155f1b6bc59aa39b60 (diff) | |
download | redot-engine-9605fc54c790b1c4364bc0eddfcdd65f979bfc21.tar.gz |
Fix cancel/OK button order on macOS
The macOS platform convention regarding button order is cancel on left,
OK on right.
Diffstat (limited to 'scene/gui/dialogs.h')
-rw-r--r-- | scene/gui/dialogs.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/gui/dialogs.h b/scene/gui/dialogs.h index 063090c832..de08685ce2 100644 --- a/scene/gui/dialogs.h +++ b/scene/gui/dialogs.h @@ -54,7 +54,7 @@ class AcceptDialog : public Window { void _custom_action(const String &p_action); void _update_child_rects(); - static bool swap_ok_cancel; + static bool swap_cancel_ok; void _input_from_window(const Ref<InputEvent> &p_event); void _parent_focused(); @@ -75,7 +75,7 @@ protected: public: Label *get_label() { return label; } - static void set_swap_ok_cancel(bool p_swap); + static void set_swap_cancel_ok(bool p_swap); void register_text_enter(Node *p_line_edit); |