Skip to content

Commit f4d3c97

Browse files
committed
fix: do not create new dialog when one already exists.
1 parent ebc8b46 commit f4d3c97

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/app.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -574,6 +574,9 @@ impl cosmic::Application for CosmicAppLibrary {
574574
return text_input::focus(EDIT_GROUP_ID.clone());
575575
}
576576
Message::StartNewGroup => {
577+
if self.new_group.is_some() {
578+
return Task::none();
579+
}
577580
self.new_group = Some(String::new());
578581
return Task::batch(vec![
579582
get_layer_surface(SctkLayerSurfaceSettings {

0 commit comments

Comments
 (0)