Browse Source

fix: set default dock bounce type (#19546)

trop[bot] 5 years ago
parent
commit
7ba29f1fa8
1 changed files with 4 additions and 1 deletions
  1. 4 1
      atom/browser/api/atom_api_app.cc

+ 4 - 1
atom/browser/api/atom_api_app.cc

@@ -1295,8 +1295,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::BOUNCE_CRITICAL);
   else if (type == "informational")