Skip to content

Commit

Permalink
update qml files in application with runtime fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
AIIX committed Feb 8, 2023
1 parent 109d3fc commit 298268b
Show file tree
Hide file tree
Showing 4 changed files with 349 additions and 356 deletions.
4 changes: 3 additions & 1 deletion application/Idler.qml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ Item {
anchors.centerIn: parent
text: "start"
visible: Mycroft.MycroftController.status == Mycroft.MycroftController.Closed
onClicked: Mycroft.MycroftController.start();
onClicked: (mouse)=> {
Mycroft.MycroftController.start();
}
}

ClockFace {
Expand Down
8 changes: 5 additions & 3 deletions application/RemoteStt.qml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ Item {
Connections {
target: Mycroft.AudioRec

onMicAudioLevelChanged: {
function onMicAudioLevelChanged(micLevel) {
animatedCircle.width = Kirigami.Units.iconSizes.large + (Kirigami.Units.iconSizes.smallMedium * micLevel)
}

onRecordTStatus: {
function onRecordTStatus(recStatus) {
switch(recStatus){
case "Completed":
console.log("In Completed")
Expand Down Expand Up @@ -164,7 +164,9 @@ Item {

MouseArea {
anchors.fill: parent
onClicked: audioRecorder.close()
onClicked: (mouse)=> {
audioRecorder.close()
}
}
}
}
Expand Down
8 changes: 4 additions & 4 deletions application/SettingsPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Kirigami.ScrollablePage {
Layout.fillWidth: true
}

Controls.Control{
Controls.Control {
Layout.fillWidth: true
Layout.preferredHeight: Kirigami.Units.gridUnit * 3
leftPadding: Kirigami.Units.largeSpacing
Expand All @@ -66,7 +66,7 @@ Kirigami.ScrollablePage {
id: webSocketAddressField
Kirigami.Theme.colorSet: nightSwitch.checked ? Kirigami.Theme.Complementary : Kirigami.Theme.Window

Component.onCompleted:{
Component.onCompleted: {
webSocketAddressField.text = Mycroft.GlobalSettings.webSocketAddress
}
}
Expand All @@ -83,7 +83,7 @@ Kirigami.ScrollablePage {
Layout.preferredHeight: Kirigami.Units.gridUnit * 3
text: "Apply"

onClicked:{
onClicked:(mouse)=> {
Mycroft.GlobalSettings.webSocketAddress = webSocketAddressField.text
Mycroft.MycroftController.reconnect()
}
Expand All @@ -96,7 +96,7 @@ Kirigami.ScrollablePage {
Layout.preferredHeight: Kirigami.Units.gridUnit * 3
text: "Revert"

onClicked: {
onClicked:(mouse)=> {
webSocketAddressField.text = "ws://0.0.0.0"
Mycroft.GlobalSettings.webSocketAddress = webSocketAddressField.text
Mycroft.MycroftController.reconnect()
Expand Down
Loading

0 comments on commit 298268b

Please sign in to comment.