ElyShow: an open dialog is never pushed aside; a stuck show start is gone (S-04)
This commit is contained in:
13 files changed
+59
-26
No files matched your search
@@ -21,12 +21,8 @@ use crate::dialog::{Dialog, edit};
|
||||
impl Deck {
|
||||
pub fn ask_table(&mut self, cx: &mut Context<Self>) {
|
||||
if let Some(tab) = self.core.active {
|
||||
self.dialog = Some(Dialog::Table {
|
||||
tab,
|
||||
columns: 3,
|
||||
rows: 3,
|
||||
});
|
||||
cx.notify();
|
||||
// Refused while another dialog is open; it says so.
|
||||
let _ = self.open_dialog(Dialog::Table { tab, columns: 3, rows: 3 }, cx);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user