mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 09:23:03 +00:00
fix: 部分情况下不显示休眠选项
在配置文件不存在的情况下,应该表示非定制情况,允许休眠功能正常显示 Log: 部分情况下不显示休眠选项 Influence: 部分情况下不显示休眠选项 Bug: https://pms.uniontech.com/zentao/bug-view-113284.html Change-Id: I76fdedd5a846990f43239109fbd642eab8e12aa5
This commit is contained in:
parent
1b27fafbfb
commit
088e89c507
@ -339,7 +339,7 @@ qint64 ShutdownPlugin::get_power_image_size()
|
||||
|
||||
bool ShutdownPlugin::checkSwap()
|
||||
{
|
||||
if (!valueByQSettings<bool>("Power", "hibernate", false))
|
||||
if (!valueByQSettings<bool>("Power", "hibernate", true))
|
||||
return false;
|
||||
|
||||
bool hasSwap = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user