Commit 2970915c authored by Laurent Montel's avatar Laurent Montel 😁

Fix warning (== vs ===)

parent 82772aba
...@@ -63,11 +63,11 @@ QMLOutput { ...@@ -63,11 +63,11 @@ QMLOutput {
opacity: root.output.enabled ? 1.0 : 0.5; opacity: root.output.enabled ? 1.0 : 0.5;
transformOrigin: Item.Center; transformOrigin: Item.Center;
rotation: { rotation: {
if (output.rotation == KScreenOutput.None) { if (output.rotation === KScreenOutput.None) {
return 0; return 0;
} else if (output.rotation == KScreenOutput.Left) { } else if (output.rotation === KScreenOutput.Left) {
return 270; return 270;
} else if (output.rotation == KScreenOutput.Inverted) { } else if (output.rotation === KScreenOutput.Inverted) {
return 180; return 180;
} else { } else {
return 90; return 90;
...@@ -209,7 +209,7 @@ QMLOutput { ...@@ -209,7 +209,7 @@ QMLOutput {
id: nameLabel id: nameLabel
text: if (root.isCloneMode === true) { text: if (root.isCloneMode === true) {
return ""; return "";
} else if (root.output.type != KScreenOutput.Panel && root.output.edid && root.output.edid.name) { } else if (root.output.type !== KScreenOutput.Panel && root.output.edid && root.output.edid.name) {
return root.output.edid.name; return root.output.edid.name;
} else { } else {
return ""; return "";
...@@ -229,7 +229,7 @@ QMLOutput { ...@@ -229,7 +229,7 @@ QMLOutput {
id: labelVendor; id: labelVendor;
text: if (root.isCloneMode) { text: if (root.isCloneMode) {
return i18n("Unified Outputs"); return i18n("Unified Outputs");
} else if (root.output.type == KScreenOutput.Panel) { } else if (root.output.type === KScreenOutput.Panel) {
return i18n("Laptop Screen"); return i18n("Laptop Screen");
} else if (root.output.edid && root.output.edid.vendor) { } else if (root.output.edid && root.output.edid.vendor) {
return root.output.edid.vendor; return root.output.edid.vendor;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment