mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-194533 Change 'Paste from History' dialog
make button order in dialog on macOS comply with official guidelines (https://developer.apple.com/design/human-interface-guidelines/macos/windows-and-views/dialogs/)
This commit is contained in:
@@ -495,11 +495,11 @@ public abstract class DialogWrapper {
|
||||
actions.add(getOKAction());
|
||||
}
|
||||
|
||||
// move cancel action to the left
|
||||
// move cancel action to the left of OK action, if present, and to the leftmost position otherwise
|
||||
int cancelNdx = actions.indexOf(getCancelAction());
|
||||
if (cancelNdx > 0) {
|
||||
actions.remove(getCancelAction());
|
||||
actions.add(0, getCancelAction());
|
||||
actions.add(okNdx < 0 ? 0 : actions.size() - 1, getCancelAction());
|
||||
}
|
||||
}
|
||||
else if (UIUtil.isUnderGTKLookAndFeel() && actions.contains(getHelpAction())) {
|
||||
|
||||
Reference in New Issue
Block a user