Skip to content

Commit 6ece17b

Browse files
deepin-ci-robotyixinshark
authored andcommitted
sync: from linuxdeepin/dde-session-shell
Synchronize source files from linuxdeepin/dde-session-shell. Source-pull-request: linuxdeepin/dde-session-shell#57
1 parent 8722531 commit 6ece17b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/widgets/warningcontent.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,9 @@ void WarningContent::doAcceptShutdownInhibit()
204204
if (m_model->currentModeState() != SessionBaseModel::ModeStatus::ShutDownMode
205205
&& m_model->currentModeState() != SessionBaseModel::ModeStatus::PowerMode
206206
&& m_powerAction != SessionBaseModel::RequireUpdateShutdown
207-
&& m_powerAction != SessionBaseModel::RequireUpdateRestart ) {
207+
&& m_powerAction != SessionBaseModel::RequireUpdateRestart
208+
&& m_powerAction != SessionBaseModel::RequireShutdown
209+
&& m_powerAction != SessionBaseModel::RequireRestart ) {
208210
FullScreenBackground::setContent(LockContent::instance());
209211
m_model->setCurrentContentType(SessionBaseModel::LockContent);
210212
}

0 commit comments

Comments
 (0)