parent
50427390dd
commit
a584a31818
|
@ -128,9 +128,13 @@ Item {
|
||||||
*/
|
*/
|
||||||
function statesInitialization() {
|
function statesInitialization() {
|
||||||
d.currentPinIndex = 0
|
d.currentPinIndex = 0
|
||||||
repeater.itemAt(d.currentPinIndex).innerState = "NEXT"
|
let item = repeater.itemAt(d.currentPinIndex)
|
||||||
|
if (item)
|
||||||
|
item.innerState = "NEXT"
|
||||||
for (var i = 1; i < root.pinLen; i++) {
|
for (var i = 1; i < root.pinLen; i++) {
|
||||||
repeater.itemAt(i).innerState = "EMPTY"
|
let item = repeater.itemAt(i)
|
||||||
|
if (item)
|
||||||
|
item.innerState = "EMPTY"
|
||||||
}
|
}
|
||||||
inputText.text = ""
|
inputText.text = ""
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,8 +12,8 @@ QtObject {
|
||||||
property int settingsSubsection: Constants.settingsSubsection.profile
|
property int settingsSubsection: Constants.settingsSubsection.profile
|
||||||
|
|
||||||
property var globalUtilsInst: typeof globalUtils !== "undefined" ? globalUtils : null
|
property var globalUtilsInst: typeof globalUtils !== "undefined" ? globalUtils : null
|
||||||
property var mainModuleInst
|
|
||||||
property var userProfile
|
property var userProfile
|
||||||
|
property var mainModuleInst: typeof mainModule !== "undefined" ? mainModule : null
|
||||||
property var privacyModuleInst
|
property var privacyModuleInst
|
||||||
property var toastMessage
|
property var toastMessage
|
||||||
property var pinnedMessagesPopup
|
property var pinnedMessagesPopup
|
||||||
|
|
|
@ -126,7 +126,7 @@ StatusWindow {
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
id: windowsOsNotificationsConnection
|
id: windowsOsNotificationsConnection
|
||||||
enabled: false
|
enabled: Qt.platform.os === Constants.windows
|
||||||
target: Global.mainModuleInst
|
target: Global.mainModuleInst
|
||||||
function onDisplayWindowsOsNotification(title, message) {
|
function onDisplayWindowsOsNotification(title, message) {
|
||||||
systemTray.showMessage(title, message)
|
systemTray.showMessage(title, message)
|
||||||
|
@ -155,9 +155,6 @@ StatusWindow {
|
||||||
// We set main module to the Global singleton once user is logged in and we move to the main app.
|
// We set main module to the Global singleton once user is logged in and we move to the main app.
|
||||||
Global.mainModuleInst = mainModule
|
Global.mainModuleInst = mainModule
|
||||||
Global.userProfile = userProfile
|
Global.userProfile = userProfile
|
||||||
if (Qt.platform.os === Constants.windows) {
|
|
||||||
windowsOsNotificationsConnection.enabled = true
|
|
||||||
}
|
|
||||||
|
|
||||||
loader.sourceComponent = app
|
loader.sourceComponent = app
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue