mirror of
https://github.com/apognu/tuigreet.git
synced 2024-11-26 07:28:57 +03:00
Hide cursor on power options screen.
This commit is contained in:
parent
227350195b
commit
a34140eb7b
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user