From 51ce3e5a8349af924170eaab6d3996387a0a473e Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Wed, 31 Jul 2019 08:20:45 -0700 Subject: [PATCH] fix: set default dock bounce type (#19523) --- shell/browser/api/atom_api_app.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/shell/browser/api/atom_api_app.cc b/shell/browser/api/atom_api_app.cc index b20ceebc8fce..f218a697388a 100644 --- a/shell/browser/api/atom_api_app.cc +++ b/shell/browser/api/atom_api_app.cc @@ -1345,8 +1345,11 @@ bool App::IsInApplicationsFolder() { return ui::cocoa::AtomBundleMover::IsCurrentAppInApplicationsFolder(); } -int DockBounce(const std::string& type) { +int DockBounce(mate::Arguments* args) { int request_id = -1; + std::string type = "informational"; + args->GetNext(&type); + if (type == "critical") request_id = Browser::Get()->DockBounce(Browser::BounceType::CRITICAL); else if (type == "informational")