File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 1- // SPDX-FileCopyrightText: 2015 - 2022 UnionTech Software Technology Co., Ltd.
1+ // SPDX-FileCopyrightText: 2015 - 2026 UnionTech Software Technology Co., Ltd.
22//
33// SPDX-License-Identifier: GPL-3.0-or-later
44
@@ -205,8 +205,7 @@ void WarningContent::doAcceptShutdownInhibit()
205205 && m_model->currentModeState () != SessionBaseModel::ModeStatus::PowerMode
206206 && m_powerAction != SessionBaseModel::RequireUpdateShutdown
207207 && m_powerAction != SessionBaseModel::RequireUpdateRestart
208- && m_powerAction != SessionBaseModel::RequireShutdown
209- && m_powerAction != SessionBaseModel::RequireRestart ) {
208+ && ((m_powerAction == SessionBaseModel::RequireShutdown || m_powerAction == SessionBaseModel::RequireRestart) && m_model->gsCheckpwd ())) {
210209 FullScreenBackground::setContent (LockContent::instance ());
211210 m_model->setCurrentContentType (SessionBaseModel::LockContent);
212211 }
You can’t perform that action at this time.
0 commit comments