fwb2-fix: DialogState::with_tab

(cherry picked from commit 59ef662743f39181bcc814227362c791ef9b6f83)
This commit is contained in:
aiongg
2026-11-15 12:06:38 +00:00
parent d2c962e392
commit 8e2f164417
+8
View File
@@ -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