Hide cursor on power options screen.

This commit is contained in:
Antoine POPINEAU 2021-10-01 16:36:04 +02:00
parent 227350195b
commit a34140eb7b

View File

@ -5,7 +5,7 @@ pub fn titleize(message: &str) -> String {
}
pub fn should_hide_cursor(greeter: &Greeter) -> bool {
greeter.working || (greeter.mode == Mode::Password && greeter.prompt.is_none()) || greeter.mode == Mode::Sessions
greeter.working || (greeter.mode == Mode::Password && greeter.prompt.is_none()) || greeter.mode == Mode::Sessions || greeter.mode == Mode::Power
}
pub fn get_height(greeter: &Greeter) -> u16 {