mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-07-02 03:01:04 +02:00
feat: load bars on monitor when it connects
Finally, Ironbar will respond to events of monitors being (dis)connected, and will create bars when a monitor connects. This means at last - resolves #291 yaay
This commit is contained in:
parent
3dc198ee41
commit
8371a92204
6 changed files with 139 additions and 96 deletions
|
@ -308,6 +308,11 @@ impl Bar {
|
|||
&self.name
|
||||
}
|
||||
|
||||
/// The name of the output the bar is displayed on.
|
||||
pub fn monitor_name(&self) -> &str {
|
||||
&self.monitor_name
|
||||
}
|
||||
|
||||
pub fn popup(&self) -> Rc<RefCell<Popup>> {
|
||||
match &self.inner {
|
||||
Inner::New { .. } => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue