mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-06-05 11:40:00 +00:00
Autoformat
This commit is contained in:
@@ -96,9 +96,9 @@ Item {
|
||||
|
||||
function getTitle() {
|
||||
if (showArtistFirst) {
|
||||
return (MediaService.trackArtist !== "" ? `${MediaService.trackArtist} - ` : "") + MediaService.trackTitle
|
||||
return (MediaService.trackArtist !== "" ? `${MediaService.trackArtist} - ` : "") + MediaService.trackTitle;
|
||||
} else {
|
||||
return MediaService.trackTitle + (MediaService.trackArtist !== "" ? ` - ${MediaService.trackArtist}` : "")
|
||||
return MediaService.trackTitle + (MediaService.trackArtist !== "" ? ` - ${MediaService.trackArtist}` : "");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -390,13 +390,13 @@ Item {
|
||||
text: {
|
||||
if (workspaceModel.name && workspaceModel.name.length > 0) {
|
||||
if (root.labelMode === "name") {
|
||||
return workspaceModel.name.substring(0, root.characterCount)
|
||||
return workspaceModel.name.substring(0, root.characterCount);
|
||||
}
|
||||
if (root.labelMode === "index+name") {
|
||||
return (workspaceModel.idx.toString() + workspaceModel.name.substring(0, 1))
|
||||
return (workspaceModel.idx.toString() + workspaceModel.name.substring(0, 1));
|
||||
}
|
||||
}
|
||||
return workspaceModel.idx.toString()
|
||||
return workspaceModel.idx.toString();
|
||||
}
|
||||
|
||||
family: Settings.data.ui.fontFixed
|
||||
|
||||
@@ -303,7 +303,7 @@ Item {
|
||||
return model.name.substring(0, characterCount);
|
||||
}
|
||||
if (root.labelMode === "index+name") {
|
||||
return (model.idx.toString() + " " + model.name.substring(0, characterCount))
|
||||
return (model.idx.toString() + " " + model.name.substring(0, characterCount));
|
||||
}
|
||||
}
|
||||
return model.idx.toString();
|
||||
@@ -452,7 +452,7 @@ Item {
|
||||
return model.name.substring(0, characterCount);
|
||||
}
|
||||
if (root.labelMode === "index+name") {
|
||||
return (model.idx.toString() + model.name.substring(0, 1))
|
||||
return (model.idx.toString() + model.name.substring(0, 1));
|
||||
}
|
||||
}
|
||||
return model.idx.toString();
|
||||
|
||||
Reference in New Issue
Block a user