autoformating
This commit is contained in:
parent
d791705afa
commit
48e57a2122
2 changed files with 3 additions and 4 deletions
|
|
@ -33,9 +33,8 @@ Singleton {
|
||||||
try {
|
try {
|
||||||
if (typeof DesktopEntries === 'undefined' || !DesktopEntries.byId)
|
if (typeof DesktopEntries === 'undefined' || !DesktopEntries.byId)
|
||||||
return iconFromName(fallback, fallback)
|
return iconFromName(fallback, fallback)
|
||||||
const entry = (DesktopEntries.heuristicLookup) ?
|
const entry = (DesktopEntries.heuristicLookup) ? DesktopEntries.heuristicLookup(
|
||||||
DesktopEntries.heuristicLookup(appId) :
|
appId) : DesktopEntries.byId(appId)
|
||||||
DesktopEntries.byId(appId)
|
|
||||||
const name = entry && entry.icon ? entry.icon : ""
|
const name = entry && entry.icon ? entry.icon : ""
|
||||||
return iconFromName(name || fallback, fallback)
|
return iconFromName(name || fallback, fallback)
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ Singleton {
|
||||||
let day = date.getDate()
|
let day = date.getDate()
|
||||||
let month = date.toLocaleDateString(Qt.locale(), "MMM")
|
let month = date.toLocaleDateString(Qt.locale(), "MMM")
|
||||||
|
|
||||||
return timeString + " - " + (Settings.data.location.reverseDayMonth ? `${dayName}, ${month} ${day}` : `${dayName}, ${day} ${month}`)
|
return timeString + " - " + (Settings.data.location.reverseDayMonth ? `${dayName}, ${month} ${day}` : `${dayName}, ${day} ${month}`)
|
||||||
}
|
}
|
||||||
|
|
||||||
return timeString
|
return timeString
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue