Skip to content

Commit 2b78bd7

Browse files
committed
Wait for export commands to finish before reloading app list
closes #1
1 parent 20cbed2 commit 2b78bd7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/container.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,9 @@ impl Container {
167167
.distrobox()
168168
.export_app(&this.name(), &desktop_file_path)
169169
.await?;
170+
this.apps().reload();
170171
Ok(())
171172
});
172-
self.apps().reload();
173173
}
174174
pub fn unexport(&self, desktop_file_path: &str) {
175175
let this = self.clone();
@@ -180,9 +180,9 @@ impl Container {
180180
.distrobox()
181181
.unexport_app(&this.name(), &desktop_file_path)
182182
.await?;
183+
this.apps().reload();
183184
Ok(())
184185
});
185-
self.apps().reload();
186186
}
187187
pub fn clone_to(&self, target_name: &str) {
188188
let this = self.clone();

0 commit comments

Comments
 (0)