Skip to content

Commit d0d1ee9

Browse files
committed
Bot
1 parent 5fe53bb commit d0d1ee9

File tree

5 files changed

+14
-7
lines changed

5 files changed

+14
-7
lines changed

Changelog.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
## Version ?.?.? - ?
22
### Release blockers:
33
- Missing support for hardlinking/softlinking files in Krokiet
4-
- Slint bug with selecting items with both mouse and keyboard - https://github.com/slint-ui/slint/issues/9103
54
- Unnecessary tokio dependency in rawler
65

76
### Breaking changes

justfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@ runs +args:
2828
export ASAN_OPTIONS="symbolize=1:detect_leaks=0" # Leak check is disabled, because is slow and ususally not needed
2929
ASAN_OPTIONS="symbolize=1:detect_leaks=0" RUSTFLAGS="-Zsanitizer=address" cargo +nightly run --target x86_64-unknown-linux-gnu --bin {{args}}
3030

31+
val bin:
32+
valgrind --leak-check=full --show-leak-kinds=definite --track-origins=yes target/debug/{{bin}}
33+
34+
valr bin:
35+
valgrind --leak-check=full --show-leak-kinds=definite --track-origins=yes target/release/{{bin}}
36+
37+
3138
## Other
3239

3340
setup_sanitizer:

krokiet/ui/bottom_panel.slint

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ component DirectoriesPanel inherits HorizontalLayout {
2323
VerticalLayout {
2424
horizontal-stretch: 1.0;
2525
padding-top: 5px;
26-
padding-bottom: 5px;
2726
HorizontalLayout {
2827
Button {
2928
icon: @image-url("../icons/krokiet_add.svg");

krokiet/ui/selectable_tree_view.slint

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,15 +110,17 @@ export component SelectableTableView inherits Rectangle {
110110
}
111111

112112
HorizontalLayout {
113+
// Workaround for https://github.com/slint-ui/slint/issues/602
114+
// Alternative solution is to use TouchArea above, to steal clicks from checkbox, but it is more fishy solution
113115
CheckBox {
116+
property <bool> from_model: r.checked;
114117
visible: !r.header_row;
115118
checked: r.checked && !r.header_row;
116119
width: root.column_sizes[0];
120+
changed from-model => { self.checked = from-model; }
117121
toggled => {
118122
Callabler.change_number_of_checked_items(r.checked ? -1 : 1);
119-
r.checked = !r.checked;
120-
// TODO - this is equivalent to r.checked = self.checked, but for now it works better, because self.checked contains sometimes old state
121-
// https://github.com/slint-ui/slint/issues/602
123+
r.checked = !r.checked;
122124
}
123125
}
124126

krokiet/ui/settings.slint

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ export global Settings {
88
in-out property <int> language_index: 0;
99
in-out property <string> language_value: "English";
1010

11-
in-out property <[IncludedDirectoriesModel]> included_directories_model: [{ path: "/home/path", referenced_folder: false, selected_row: false }];
11+
in-out property <[IncludedDirectoriesModel]> included_directories_model: [{ path: "/home/path", referenced_folder: false, selected_row: false },{ path: "/home/path", referenced_folder: false, selected_row: false },{ path: "/home/path", referenced_folder: false, selected_row: false },{ path: "/home/path", referenced_folder: false, selected_row: false }];
1212
in-out property <int> included_directories_model_selected_idx: -1;
13-
in-out property <[ExcludedDirectoriesModel]> excluded_directories_model: [{ path:"/home/path", selected_row: false }, { path:"/home/a", selected_row: false }];
13+
in-out property <[ExcludedDirectoriesModel]> excluded_directories_model: [{ path:"/home/path", selected_row: false },{ path:"/home/path", selected_row: false },{ path:"/home/path", selected_row: false },{ path:"/home/path", selected_row: false }, { path:"/home/a", selected_row: false }];
1414
in-out property <int> excluded_directories_model_selected_idx: -1;
1515

1616
// Settings

0 commit comments

Comments
 (0)