cm-no-ui, debug

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou
2023-03-30 21:35:47 +08:00
parent 6238098cd0
commit f91514e164
3 changed files with 6 additions and 27 deletions

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())
}
}