config: allow disabling the built-in bar
This commit is contained in:
parent
224f5380fe
commit
08e7e01d0e
16 changed files with 156 additions and 14 deletions
|
|
@ -950,6 +950,16 @@ impl ConfigClient {
|
|||
above
|
||||
}
|
||||
|
||||
pub fn set_show_bar(&self, show: bool) {
|
||||
self.send(&ClientMessage::SetShowBar { show });
|
||||
}
|
||||
|
||||
pub fn get_show_bar(&self) -> bool {
|
||||
let res = self.send_with_response(&ClientMessage::GetShowBar);
|
||||
get_response!(res, true, GetShowBar { show });
|
||||
show
|
||||
}
|
||||
|
||||
pub fn set_show_float_pin_icon(&self, show: bool) {
|
||||
self.send(&ClientMessage::SetShowFloatPinIcon { show });
|
||||
}
|
||||
|
|
|
|||
|
|
@ -721,6 +721,10 @@ pub enum ClientMessage<'a> {
|
|||
GetContentType {
|
||||
window: Window,
|
||||
},
|
||||
SetShowBar {
|
||||
show: bool,
|
||||
},
|
||||
GetShowBar,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug)]
|
||||
|
|
@ -950,6 +954,9 @@ pub enum Response {
|
|||
GetContentType {
|
||||
kind: ContentType,
|
||||
},
|
||||
GetShowBar {
|
||||
show: bool,
|
||||
},
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue