mobile-widgets/qml: remove M126 warnings in main.qml

changed != --> !==
and == --> ===
to make QML happy.

Signed-off-by: jan Iversen <jan@casacondor.com>
This commit is contained in:
jan Iversen 2020-01-18 12:53:06 +01:00 committed by Dirk Hohndel
parent 2d12d251b7
commit bcfe505f09

View file

@ -726,9 +726,9 @@ if you have network connectivity and want to sync your data to cloud storage."),
// this needs to pick the theme from persistent preference settings // this needs to pick the theme from persistent preference settings
var theme = PrefDisplay.theme var theme = PrefDisplay.theme
if (theme == "Blue") if (theme === "Blue")
blueTheme() blueTheme()
else if (theme == "Pink") else if (theme === "Pink")
pinkTheme() pinkTheme()
else else
darkTheme() darkTheme()
@ -745,7 +745,7 @@ if you have network connectivity and want to sync your data to cloud storage."),
subsurfaceTheme.initialHeight = height subsurfaceTheme.initialHeight = height
manager.appendTextToLog("first real change, so recalculating units and recording size as " + width + " x " + height) manager.appendTextToLog("first real change, so recalculating units and recording size as " + width + " x " + height)
setupUnits() setupUnits()
} else if (rootItem.lastOrientation !== undefined && rootItem.lastOrientation != Screen.primaryOrientation) { } else if (rootItem.lastOrientation !== undefined && rootItem.lastOrientation !== Screen.primaryOrientation) {
manager.appendTextToLog("Screen rotated, no action necessary") manager.appendTextToLog("Screen rotated, no action necessary")
rootItem.lastOrientation = Screen.primaryOrientation rootItem.lastOrientation = Screen.primaryOrientation
setupUnits() setupUnits()
@ -788,8 +788,8 @@ if you have network connectivity and want to sync your data to cloud storage."),
manager.appendTextToLog("pageStack forced back to map") manager.appendTextToLog("pageStack forced back to map")
} }
} else if (pageStack.currentItem.objectName !== mapPage.objectName && } else if (pageStack.currentItem.objectName !== mapPage.objectName &&
pageStack.lastItem.objectName === mapPage.objectName && pageStack.lastItem.objectName === mapPage.objectName &&
hackToOpenMap === 1 /* MapSelected */) { hackToOpenMap === 1 /* MapSelected */) {
// if we just picked the mapPage and are suddenly back on a different page // if we just picked the mapPage and are suddenly back on a different page
// force things back to the mapPage // force things back to the mapPage
manager.appendTextToLog("pageStack wrong page, switching back to map") manager.appendTextToLog("pageStack wrong page, switching back to map")