1 Star 0 Fork 92

Anonymous_Z / anaconda_1

forked from src-openEuler / anaconda 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
disable-ssh-login-checkbox.patch 1.75 KB
一键复制 编辑 原始数据 按行查看 历史
t.feng 提交于 2020-07-01 19:07 . update
From 6920ff7aa9c0215a032e00a5406b943737903c72 Mon Sep 17 00:00:00 2001
From: t_feng <fengtao40@huawei.com>
Date: Wed, 1 Jul 2020 18:08:35 +0800
Subject: [PATCH] disable ssh login checkbox
---
pyanaconda/ui/gui/spokes/root_password.py | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/pyanaconda/ui/gui/spokes/root_password.py b/pyanaconda/ui/gui/spokes/root_password.py
index 313ba0f..2af9111 100644
--- a/pyanaconda/ui/gui/spokes/root_password.py
+++ b/pyanaconda/ui/gui/spokes/root_password.py
@@ -72,6 +72,8 @@ class PasswordSpoke(FirstbootSpokeMixIn, NormalSpoke, GUISpokeInputCheckHandler)
self._password_label = self.builder.get_object("password_label")
self._lock = self.builder.get_object("lock")
self._root_password_ssh_login_override = self.builder.get_object("root_password_ssh_login_override")
+ self._root_password_ssh_login_override.set_visible(False)
+ self._root_password_ssh_login_override.set_no_show_all(True)
# Install the password checks:
# - Has a password been specified?
@@ -147,9 +149,9 @@ class PasswordSpoke(FirstbootSpokeMixIn, NormalSpoke, GUISpokeInputCheckHandler)
# we use the _refresh_running atribute to differentiate
# it from "real" clicks
self._lock.set_active(self._users_module.IsRootAccountLocked)
- self._root_password_ssh_login_override.set_active(
- self._users_module.RootPasswordSSHLoginAllowed
- )
+ self._root_password_ssh_login_override.set_visible(False)
+ self._root_password_ssh_login_override.set_no_show_all(True)
+
if not self._lock.get_active():
# rerun checks so that we have a correct status message, if any
self.checker.run_checks()
--
2.23.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/anonymous_z/anaconda_1.git
git@gitee.com:anonymous_z/anaconda_1.git
anonymous_z
anaconda_1
anaconda_1
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891