mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 09:23:03 +00:00
fix: 修复应用获取配置某些情况下可能失败的问题
条件判断写的有问题,少了括号 Log: 修复应用获取配置某些情况下可能失败的问题 Change-Id: I0e9f447e4d904cba2aaea83fa77ce7c2f87cae08
This commit is contained in:
parent
02c8cbb2d1
commit
f46de5761e
@ -63,7 +63,7 @@ include_directories(
|
||||
frame/window
|
||||
frame/xcb
|
||||
frame/mockinterface
|
||||
)
|
||||
)
|
||||
|
||||
aux_source_directory(frame/controller CONTROLLER)
|
||||
aux_source_directory(frame/dbus DBUS)
|
||||
@ -89,7 +89,7 @@ file(GLOB SRC_PATH
|
||||
${WINDOW}
|
||||
${XCB}
|
||||
${MOCKINTERFACE}
|
||||
)
|
||||
)
|
||||
|
||||
add_subdirectory("frame")
|
||||
add_subdirectory("plugins")
|
||||
@ -117,3 +117,7 @@ install(FILES "cmake/DdeDock/DdeDockConfig.cmake"
|
||||
|
||||
install(FILES gschema/com.deepin.dde.dock.module.gschema.xml
|
||||
DESTINATION share/glib-2.0/schemas)
|
||||
|
||||
# Address Sanitizer 内存错误检测工具,打开下面的编译选项可以看到调试信息,正常运行时不需要这些信息
|
||||
#set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -fsanitize=address -O2")
|
||||
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -fsanitize=address -O2")
|
||||
|
@ -65,7 +65,3 @@ endif()
|
||||
|
||||
# bin
|
||||
install(TARGETS ${BIN_NAME} DESTINATION bin)
|
||||
|
||||
# Address Sanitizer 内存错误检测工具,打开下面的编译选项可以看到调试信息,正常运行时不需要这些信息
|
||||
#set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -fsanitize=address -O2")
|
||||
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -fsanitize=address -O2")
|
||||
|
@ -710,7 +710,7 @@ void AppItem::onGSettingsChanged(const QString &key)
|
||||
: m_activeAppSettings;
|
||||
|
||||
if (setting && setting->keys().contains("enable")) {
|
||||
const bool isEnable = !m_appSettings || m_appSettings->keys().contains("enable") && m_appSettings->get("enable").toBool();
|
||||
const bool isEnable = !m_appSettings || (m_appSettings->keys().contains("enable") && m_appSettings->get("enable").toBool());
|
||||
setVisible(isEnable && setting->get("enable").toBool());
|
||||
}
|
||||
}
|
||||
|
@ -69,7 +69,3 @@ add_custom_command(TARGET check
|
||||
)
|
||||
|
||||
add_dependencies(check ${BIN_NAME})
|
||||
|
||||
# Address Sanitizer 内存错误检测工具,打开下面的编译选项可以看到调试信息,正常运行时不需要这些信息
|
||||
#set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -fsanitize=address -O2")
|
||||
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -fsanitize=address -O2")
|
||||
|
Loading…
x
Reference in New Issue
Block a user