Skip to content

Commit

Permalink
AB
Browse files Browse the repository at this point in the history
  • Loading branch information
qarmin committed Nov 5, 2023
1 parent 84b7145 commit 592ec9a
Show file tree
Hide file tree
Showing 11 changed files with 139 additions and 82 deletions.
118 changes: 66 additions & 52 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion czkawka_slint_gui/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,15 @@ crossbeam-channel = "0.5.8"
handsome_logger = "0.8.0"
rfd = { version = "0.12.0", default-features = false, features = ["xdg-portal"] }
home = "0.5.5"
log = "0.4.20"

[build-dependencies]
#slint-build = "1.2.2"
slint-build = { git = "https://github.com/slint-ui/slint.git" }

[features]
default = ["winit_femtovg", "winit_software"]
# TODO remove from deault features skia, because is harder to cross-compile it
default = ["winit_femtovg", "winit_software", "winit_skia_opengl"]
skia_opengl = ["slint/renderer-skia-opengl"]
skia_vulkan = ["slint/renderer-skia-vulkan"]
software = ["slint/renderer-software"]
Expand Down
5 changes: 5 additions & 0 deletions czkawka_slint_gui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ Slint version of app should not have any special runtime requirements - it shoul
Alternatively, it can be run with software rendering.

## Compilation
Ubuntu
```
sudo apt install libfontconfig-dev libfreetype-dev
```

Default compilation is done by `cargo build --release` and should work on most systems.

You need the latest available version of Rust to compile it, because NAME_TODO aims to support the latest slint verions,
Expand Down
3 changes: 2 additions & 1 deletion czkawka_slint_gui/src/connect_delete.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use slint::{ComponentHandle, Model, ModelRc, VecModel};

use crate::MainListModel;
use crate::{CurrentTab, MainWindow};
use log::info;

pub fn connect_delete_button(app: &MainWindow) {
let a = app.as_weak();
Expand Down Expand Up @@ -34,7 +35,7 @@ fn handle_delete_empty_folders(app: &MainWindow) {

// TODO delete in parallel items, consider to add progress bar
fn remove_selected_items(items: Vec<MainListModel>) {
dbg!(format!("Items to remove {}", items.len()));
info!("Items to remove {}", items.len());
drop(items);
// items.into_iter().for_each(|_item| {});
}
Expand Down
Loading

0 comments on commit 592ec9a

Please sign in to comment.