Skip to content

Commit

Permalink
Let it be const
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Jul 27, 2024
1 parent 29dd174 commit 37e713e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/qml/qgismobileapp.qml
Original file line number Diff line number Diff line change
Expand Up @@ -3305,7 +3305,7 @@ ApplicationWindow {
platformUtilities.setHandleVolumeKeys(qfieldSettings.digitizingVolumeKeys && stateMachine.state != 'browse');
let activeLayer = projectInfo.activeLayer;
if (flatLayerTree.mapTheme != '') {
let defaultActiveLayer = projectInfo.getDefaultActiveLayerForMapTheme(flatLayerTree.mapTheme);
const defaultActiveLayer = projectInfo.getDefaultActiveLayerForMapTheme(flatLayerTree.mapTheme);
if (defaultActiveLayer !== null) {
activeLayer = defaultActiveLayer;
}
Expand Down Expand Up @@ -3394,7 +3394,7 @@ ApplicationWindow {

function onMapThemeChanged() {
if (!flatLayerTree.isFrozen && flatLayerTree.mapTheme != '') {
let defaultActiveLayer = projectInfo.getDefaultActiveLayerForMapTheme(flatLayerTree.mapTheme);
const defaultActiveLayer = projectInfo.getDefaultActiveLayerForMapTheme(flatLayerTree.mapTheme);
if (defaultActiveLayer !== null) {
dashBoard.activeLayer = defaultActiveLayer;
}
Expand Down

1 comment on commit 37e713e

@qfield-fairy
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.