Rename the unityLauncher api to launcher and make it available on linux in general. + Document it only works on ubuntu
This commit is contained in:
parent
336a55cb23
commit
e2d389fbd4
3 changed files with 20 additions and 7 deletions
|
@ -60,8 +60,10 @@ bool Browser::UnityLauncherAvailable() {
|
|||
}
|
||||
|
||||
void Browser::UnityLauncherSetBadgeCount(int count) {
|
||||
current_badge_count_ = count;
|
||||
unity::SetDownloadCount(count);
|
||||
if (UnityLauncherAvailable()) {
|
||||
current_badge_count_ = count;
|
||||
unity::SetDownloadCount(count);
|
||||
}
|
||||
}
|
||||
|
||||
int Browser::UnityLauncherGetBadgeCount() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue