Random changer
This commit is contained in:
parent
04a91aeca7
commit
a4723230fc
433
Cargo.lock
generated
433
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
12
Changelog.md
12
Changelog.md
|
@ -1,3 +1,15 @@
|
|||
## Version 5.2.0 - ?
|
||||
- Add finding similar audio files by content - [#970](https://github.com/qarmin/czkawka/pull/970)
|
||||
- Allow to find duplicates by name/size at once - [#956](https://github.com/qarmin/czkawka/pull/956)
|
||||
- Fixed bug when cache for music tags not worked - [#970](https://github.com/qarmin/czkawka/pull/970)
|
||||
- Allow to set number of threads from CLI - [#972](https://github.com/qarmin/czkawka/pull/972)
|
||||
- Fix problem with invalid item sorting in bad extensions mode - [#972](https://github.com/qarmin/czkawka/pull/972)
|
||||
- Big refactor/cleaning of code - [#956](https://github.com/qarmin/czkawka/pull/956)/[#970](https://github.com/qarmin/czkawka/pull/970)/[#972](https://github.com/qarmin/czkawka/pull/972)
|
||||
- Use builtin gtk webp preview loader - [#923](https://github.com/qarmin/czkawka/pull/923)
|
||||
- Fixed docker build - [#947](https://github.com/qarmin/czkawka/pull/947)
|
||||
- Restore snap builds broken since GTk 4 port - [#965](https://github.com/qarmin/czkawka/pull/947)
|
||||
- Instruction how to build native ARM64 binaries on Mac - [#945](https://github.com/qarmin/czkawka/pull/945)/[#971](https://github.com/qarmin/czkawka/pull/971)
|
||||
|
||||
## Version 5.1.0 - 19.02.2023r
|
||||
- Added sort button - [#894](https://github.com/qarmin/czkawka/pull/894)
|
||||
- Allow to set number of thread used to scan - [#839](https://github.com/qarmin/czkawka/pull/839)
|
||||
|
|
|
@ -10,7 +10,7 @@ homepage = "https://github.com/qarmin/czkawka"
|
|||
repository = "https://github.com/qarmin/czkawka"
|
||||
|
||||
[dependencies]
|
||||
clap = { version = "4.2", features = ["derive"] }
|
||||
clap = { version = "4.3", features = ["derive"] }
|
||||
|
||||
# For enum types
|
||||
image_hasher = "1.1"
|
||||
|
|
|
@ -25,8 +25,8 @@ image = "0.24"
|
|||
hamming = "0.1"
|
||||
|
||||
# Needed by same music
|
||||
bitflags = "2.2"
|
||||
lofty = "0.12"
|
||||
bitflags = "2.3"
|
||||
lofty = "0.13"
|
||||
|
||||
# Futures - needed by async progress sender
|
||||
futures = "0.3.28"
|
||||
|
@ -76,7 +76,7 @@ num_cpus = "1.15"
|
|||
libheif-rs = { version = "0.18.0", optional = true } # Do not upgrade now, since Ubuntu 22.04 not works with newer version
|
||||
anyhow = { version = "1.0" }
|
||||
|
||||
state = "0.5"
|
||||
state = "0.6"
|
||||
|
||||
[features]
|
||||
default = []
|
||||
|
|
|
@ -24,7 +24,7 @@ use crate::common_directory::Directories;
|
|||
use crate::common_items::ExcludedItems;
|
||||
use crate::common_traits::ResultEntry;
|
||||
|
||||
static NUMBER_OF_THREADS: state::Storage<usize> = state::Storage::new();
|
||||
static NUMBER_OF_THREADS: state::InitCell<usize> = state::InitCell::new();
|
||||
|
||||
pub fn get_number_of_threads() -> usize {
|
||||
let data = NUMBER_OF_THREADS.get();
|
||||
|
|
|
@ -473,7 +473,7 @@ where
|
|||
}
|
||||
}
|
||||
if counter > 0 {
|
||||
// Do not increase counter one by one in threads, because usually it
|
||||
// Increase counter in batch, because usually it may be slow to add multiple times atomic value
|
||||
atomic_counter.fetch_add(counter, Ordering::Relaxed);
|
||||
}
|
||||
(dir_result, warnings, fe_result, set_as_not_empty_folder_list, folder_entries_list)
|
||||
|
|
|
@ -14,7 +14,7 @@ gdk4 = "0.6.3"
|
|||
glib = "0.17.9"
|
||||
|
||||
humansize = "2.1"
|
||||
chrono = "0.4.24"
|
||||
chrono = "0.4.26"
|
||||
|
||||
# Used for sending stop signal across threads
|
||||
crossbeam-channel = "0.5.8"
|
||||
|
|
Loading…
Reference in a new issue