Skip to content

Commit

Permalink
add busy indicator for nigh mode switch
Browse files Browse the repository at this point in the history
  • Loading branch information
Karry committed Feb 5, 2024
1 parent 7625c8d commit 25d23b7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions qml/pages/MapPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -1781,6 +1781,7 @@ Page {
var key = styleFlagsModel.data(index, StyleFlagsModel.KeyRole);
if (key === "daylight") {
nightModeBtn.daylight = styleFlagsModel.data(index, StyleFlagsModel.ValueRole);
nightModeProgressIndicator.running = styleFlagsModel.data(index, StyleFlagsModel.InProgressRole);
// console.log("update daylight to " + nightModeBtn.daylight);
return;
}
Expand Down Expand Up @@ -1816,6 +1817,12 @@ Page {
styleFlagsModel.setFlag("daylight", !nightModeBtn.daylight);
}
}
BusyIndicator{
id: nightModeProgressIndicator
running: false
size: BusyIndicatorSize.Medium
anchors.centerIn: parent
}
}
}
}

0 comments on commit 25d23b7

Please sign in to comment.