fix: set default dock bounce type (#19523)

This commit is contained in:
Shelley Vohr 2019-07-31 08:20:45 -07:00 committed by GitHub
parent d6605193a1
commit 51ce3e5a83
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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