Skip to content

Commit 0913226

Browse files
committed
Minor cleanups
1 parent 302dbb5 commit 0913226

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,13 +259,13 @@ if(NOT IOS AND NOT ANDROID)
259259
endif()
260260

261261
if(ENABLE_MQTT)
262+
add_definitions(-DENABLE_MQTT)
262263
find_package(Qt6 REQUIRED COMPONENTS Mqtt)
263264
target_link_libraries(${CMAKE_PROJECT_NAME} PRIVATE Qt6::Mqtt)
264-
add_definitions(-DENABLE_MQTT)
265265
endif()
266266
if(ENABLE_MBEDTLS)
267267
add_definitions(-DENABLE_MBEDTLS)
268-
target_link_libraries(${CMAKE_PROJECT_NAME} PUBLIC "-lmbedtls -lmbedx509 -lmbedcrypto")
268+
target_link_libraries(${CMAKE_PROJECT_NAME} PRIVATE "-lmbedtls -lmbedx509 -lmbedcrypto")
269269
endif()
270270

271271
################################################################################

qml/DesktopApplication.qml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,11 +327,11 @@ ApplicationWindow {
327327
onActivated: deviceManager.refreshDevices_check()
328328
}
329329
Shortcut {
330-
sequence: "Ctrl+F5"
330+
sequences: ["Ctrl+F5"]
331331
onActivated: deviceManager.refreshDevices_start()
332332
}
333333
Shortcut {
334-
sequence: StandardKey.Preferences
334+
sequences: [StandardKey.Preferences]
335335
onActivated: appContent.state = "Settings"
336336
}
337337
Shortcut {

qml/DeviceBatteryMonitor.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Loader {
4141
deviceBM.item.backAction()
4242

4343
// disconnect device
44-
//if (currentDevice) currentDevice.actionDisconnect()
44+
if (currentDevice) currentDevice.actionDisconnect()
4545
}
4646

4747
////////////////////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)