only one user, the switch user button is not displayed
This commit is contained in:
parent
1d5a6cea9f
commit
0969a8b448
@ -0,0 +1,27 @@
|
|||||||
|
From 1e26460fc8b4cd856feade5711004f5d85391f2c Mon Sep 17 00:00:00 2001
|
||||||
|
From: tanyulong <tanyulong@kylinos.cn>
|
||||||
|
Date: Fri, 5 Nov 2021 14:25:30 +0800
|
||||||
|
Subject: [PATCH] only one user the switch user button is not displayed
|
||||||
|
|
||||||
|
---
|
||||||
|
src/lockwidget.cpp | 4 ++++
|
||||||
|
1 file changed, 4 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/src/lockwidget.cpp b/src/lockwidget.cpp
|
||||||
|
index 9a62ef7..0b75b6d 100755
|
||||||
|
--- a/src/lockwidget.cpp
|
||||||
|
+++ b/src/lockwidget.cpp
|
||||||
|
@@ -52,6 +52,10 @@ LockWidget::LockWidget(QWidget *parent)
|
||||||
|
authDialog, &AuthDialog::onCapsLockChanged);
|
||||||
|
this->installEventFilter(this);
|
||||||
|
initUI();
|
||||||
|
+
|
||||||
|
+ if(users->getUsers().count() < 2){
|
||||||
|
+ ui->btnSwitchUser->hide();
|
||||||
|
+ }
|
||||||
|
}
|
||||||
|
|
||||||
|
LockWidget::~LockWidget()
|
||||||
|
--
|
||||||
|
2.30.0
|
||||||
|
|
||||||
@ -1,6 +1,6 @@
|
|||||||
Name: ukui-screensaver
|
Name: ukui-screensaver
|
||||||
Version: 3.0.1
|
Version: 3.0.1
|
||||||
Release: 9
|
Release: 10
|
||||||
Summary: parallels toolbox for UKUI
|
Summary: parallels toolbox for UKUI
|
||||||
License: GPL-3+ GPL-2+
|
License: GPL-3+ GPL-2+
|
||||||
URL: http://www.ukui.org
|
URL: http://www.ukui.org
|
||||||
@ -34,6 +34,7 @@ patch4: 0005-Add-sentence-author-info.patch
|
|||||||
#patch5: 0006-Add-fractional-scaling-parameters.patch
|
#patch5: 0006-Add-fractional-scaling-parameters.patch
|
||||||
patch6: 0007-screen-saver-mode-is-set-to-single-and-the-problem-of-segfault.patch
|
patch6: 0007-screen-saver-mode-is-set-to-single-and-the-problem-of-segfault.patch
|
||||||
patch7: 0008-Screen-saver-add-x11-attribute.patch
|
patch7: 0008-Screen-saver-add-x11-attribute.patch
|
||||||
|
patch8: 0009-only-one-user-the-switch-user-button-is-not-displayed.patch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The ukui-sidebar is mainly used in the desktop operating system.
|
The ukui-sidebar is mainly used in the desktop operating system.
|
||||||
@ -51,6 +52,7 @@ patch7: 0008-Screen-saver-add-x11-attribute.patch
|
|||||||
#%patch5 -p1
|
#%patch5 -p1
|
||||||
%patch6 -p1
|
%patch6 -p1
|
||||||
%patch7 -p1
|
%patch7 -p1
|
||||||
|
%patch8 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
cmake .
|
cmake .
|
||||||
@ -79,7 +81,10 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
#%%{_datadir}/ukui-screensaver/screensaver-en.ini
|
#%%{_datadir}/ukui-screensaver/screensaver-en.ini
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Tue Tue 02 2021 tanyulong <tanyulong@kylinos.cn> - 3.0.1-9
|
* Fri Nov 05 2021 tanyulong <tanyulong@kylinos.cn> - 3.0.1-10
|
||||||
|
- there is only one user, the switch user button is not displayed
|
||||||
|
|
||||||
|
* Tue Nov 02 2021 tanyulong <tanyulong@kylinos.cn> - 3.0.1-9
|
||||||
- Screen saver add x11bypasswindowmanager attribute
|
- Screen saver add x11bypasswindowmanager attribute
|
||||||
|
|
||||||
* Mon Nov 1 2021 tanyulong <tanyulong@kylinos.cn> - 3.0.1-8
|
* Mon Nov 1 2021 tanyulong <tanyulong@kylinos.cn> - 3.0.1-8
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user