Skip to content

Commit d0a9b1c

Browse files
committed
select item fix, empty css class fix
1 parent 2050df4 commit d0a9b1c

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

src/backends/supported_terminals.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ impl TerminalRepository {
166166
async move {
167167
match Self::load_terminals_from_json(&custom_list_path) {
168168
Ok(terminals) => Ok(terminals),
169-
Err(e) if !custom_list_path.exists() => Ok(vec![]),
169+
Err(_e) if !custom_list_path.exists() => Ok(vec![]),
170170
Err(e) => {
171171
warn!(
172172
"Failed to load custom terminals from JSON file {:?}: {}",

src/widgets/sidebar_row.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ mod imp {
6363
self.status_dot.remove_css_class("created");
6464

6565
// Add the appropriate class
66-
self.status_dot.add_css_class(value);
66+
if ["up", "exited", "created"].contains(&value) {
67+
self.status_dot.add_css_class(value);
68+
}
6769
}
6870
}
6971

src/widgets/window.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ impl DistroShelfWindow {
131131
let this_clone = this.clone();
132132
this.root_store()
133133
.selected_container_model()
134-
.connect_selected_notify(move |model| {
134+
.connect_selected_item_notify(move |model| {
135135
if let Some(container) = model
136136
.selected_item()
137137
.and_then(|obj| obj.downcast::<Container>().ok())

0 commit comments

Comments
 (0)