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:
Jonas Schwabe 2016-06-26 11:48:58 +02:00
parent 336a55cb23
commit e2d389fbd4
3 changed files with 20 additions and 7 deletions

View file

@ -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() {