mirror of
https://github.com/Microsoft/vscode
synced 2024-09-19 18:48:00 +00:00
Git: "Discard Changes" dialog button defaults are flipped (fixes #31006)
This commit is contained in:
parent
e5c20f7eeb
commit
0b0f7abb57
|
@ -129,6 +129,8 @@ export class MessageService extends WorkbenchMessageService implements IChoiceSe
|
|||
|
||||
if (opts.defaultId !== void 0) {
|
||||
opts.defaultId = isLinux ? opts.buttons.length - opts.defaultId - 1 : opts.defaultId;
|
||||
} else if (isLinux) {
|
||||
opts.defaultId = opts.buttons.length - 1; // since we reversed the buttons
|
||||
}
|
||||
|
||||
if (opts.cancelId !== void 0) {
|
||||
|
|
Loading…
Reference in a new issue