Skip to content

Commit eb9ddf1

Browse files
authored
Merge pull request #7 from ranfdev/next
v1.0.3
2 parents 9e9e12c + d77f5f4 commit eb9ddf1

File tree

7 files changed

+21
-5
lines changed

7 files changed

+21
-5
lines changed

.github/workflows/flatpak.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
on:
22
push:
3-
branches: [ main ]
43
tags: [ v*.*.* ]
54
pull_request:
65
workflow_dispatch:

data/com.ranfdev.DistroShelf.metainfo.xml.in

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,15 @@
7171
</screenshots>
7272

7373
<releases>
74+
<release version="1.0.3" date="2025-04-25">
75+
<description translate="no">
76+
<ul>
77+
<li>Wait for export commands to finish before reloading app list</li>
78+
<li>Close selected task when closing the entire task dialog</li>
79+
<li>Remove main view of container actions after container is deleted</li>
80+
</ul>
81+
</description>
82+
</release>
7483
<release version="1.0.2" date="2025-04-25">
7584
<description translate="no">
7685
<ul>

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
project('distroshelf', 'rust',
2-
version: '1.0.2',
2+
version: '1.0.3',
33
meson_version: '>= 1.0.0',
44
default_options: [ 'warning_level=2', 'werror=false', ],
55
)

src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pub static VERSION: &str = "1.0.2";
1+
pub static VERSION: &str = "1.0.3";
22
pub static GETTEXT_PACKAGE: &str = "distroshelf";
33
pub static LOCALEDIR: &str = "/app/share/locale";
44
pub static PKGDATADIR: &str = "/app/share/distroshelf";

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();

src/task_manager_dialog.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,11 @@ mod imp {
135135
this.root_store().set_selected_task(None::<&DistroboxTask>);
136136
});
137137

138+
let this = self.obj().clone();
139+
self.obj().connect_closed(move |_| {
140+
this.root_store().set_selected_task(None::<&DistroboxTask>);
141+
});
142+
138143
self.scrolled_window.set_child(Some(&self.stack));
139144
self.content.append(&self.scrolled_window);
140145

src/window.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,8 @@ impl DistroShelfWindow {
143143
if let Some(container) = root_store.selected_container() {
144144
this_clone.build_main_content(&container);
145145
this_clone.imp().split_view.set_show_content(true);
146+
} else {
147+
this_clone.imp().main_slot.set_child(None::<&gtk::Widget>);
146148
}
147149
});
148150
let this_clone = this.clone();
@@ -533,6 +535,7 @@ impl DistroShelfWindow {
533535
this,
534536
move |dialog, _| {
535537
this.root_store().selected_container().unwrap().delete();
538+
this.root_store().set_selected_container(None::<Container>);
536539
dialog.close();
537540
}
538541
),

0 commit comments

Comments
 (0)