cm-no-ui, debug

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou committed 2023-04-03 13:16:55 +08:00
1 parent 6238098cd0
commit f91514e164
3 files changed
+6 -27

No files matched your search

+4 -7
View File
@@ -143,16 +143,13 @@ impl DesktopManager {
}
fn get_supported_display_seat0_username(&self) -> Option<String> {
if is_gdm_user(&self.seat0_username)
&& self.seat0_display_server == DISPLAY_SERVER_WAYLAND
if is_gdm_user(&self.seat0_username) && self.seat0_display_server == DISPLAY_SERVER_WAYLAND
{
None
} else if self.seat0_username.is_empty() {
None
} else {
if self.seat0_username.is_empty() {
None
} else {
Some(self.seat0_username.clone())
}
Some(self.seat0_username.clone())
}
}