This commit is contained in:
@@ -189,6 +189,14 @@ impl RunMenu {
|
||||
self.window.present();
|
||||
}
|
||||
|
||||
pub fn toggle(&mut self) {
|
||||
if self.window.is_visible() {
|
||||
self.hide();
|
||||
} else {
|
||||
self.show();
|
||||
}
|
||||
}
|
||||
|
||||
fn create_entry(&self, content_box: >k::Box, entry: &str) -> gtk::Button {
|
||||
let entry_clone = entry.to_owned();
|
||||
let button = gtk::Button::new();
|
||||
|
||||
Reference in New Issue
Block a user