mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-15 18:43:59 +00:00
BluetoothService: more robust connection logic
This commit is contained in:
+7
-7
@@ -105,18 +105,18 @@ Singleton {
|
||||
return I18n.tr("notifications.time.diffM");
|
||||
if (diff < 3600000)
|
||||
return I18n.tr("notifications.time.diffMM", {
|
||||
"diff": Math.floor(diff / 60000)
|
||||
});
|
||||
"diff": Math.floor(diff / 60000)
|
||||
});
|
||||
if (diff < 7200000)
|
||||
return I18n.tr("notifications.time.diffH");
|
||||
if (diff < 86400000)
|
||||
return I18n.tr("notifications.time.diffHH", {
|
||||
"diff": Math.floor(diff / 3600000)
|
||||
});
|
||||
if (diff < 172800000)
|
||||
"diff": Math.floor(diff / 3600000)
|
||||
});
|
||||
if (diff < 172800000)
|
||||
return I18n.tr("notifications.time.diffD");
|
||||
return I18n.tr("notifications.time.diffDD", {
|
||||
"diff": Math.floor(diff / 86400000)
|
||||
});
|
||||
"diff": Math.floor(diff / 86400000)
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user