mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-18 01:22:49 +00:00
fwb2-fix: DialogState::with_tab
(cherry picked from commit 59ef662743f39181bcc814227362c791ef9b6f83)
This commit is contained in:
@@ -271,6 +271,14 @@ impl DialogState {
|
||||
}
|
||||
}
|
||||
|
||||
/// Opens on the app tab whose [`DialogTab`](super::DialogTab) id is `tab`; an id no tab has opens on Keyboard
|
||||
/// Shortcuts.
|
||||
#[must_use]
|
||||
pub fn with_tab(mut self, tab: &'static str) -> DialogState {
|
||||
self.tab = Some(tab);
|
||||
self
|
||||
}
|
||||
|
||||
/// Whether the first frame has run.
|
||||
pub(crate) fn begun(&self) -> bool {
|
||||
self.phase != Phase::New
|
||||
|
||||
Reference in New Issue
Block a user