Browse Source

Show custom buttons as links

Cheng Zhao 9 years ago
parent
commit
9793473b10
1 changed files with 2 additions and 1 deletions
  1. 2 1
      atom/browser/ui/message_box_win.cc

+ 2 - 1
atom/browser/ui/message_box_win.cc

@@ -76,7 +76,8 @@ int ShowMessageBoxUTF16(HWND parent,
                         const base::string16& message,
                         const base::string16& detail,
                         const gfx::ImageSkia& icon) {
-  TASKDIALOG_FLAGS flags = TDF_SIZE_TO_CONTENT;  // show all content.
+  TASKDIALOG_FLAGS flags = TDF_SIZE_TO_CONTENT |  // show all content.
+                           TDF_USE_COMMAND_LINKS;  // custom buttons as links.
   if (cancel_id != 0)
     flags |= TDF_ALLOW_DIALOG_CANCELLATION;  // allow dialog to be cancelled.