Git: "Discard Changes" dialog button defaults are flipped (fixes #31006)

This commit is contained in:
Benjamin Pasero 2017-11-24 16:07:43 +01:00
parent e5c20f7eeb
commit 0b0f7abb57

View file

@ -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) {