bugfix(zoom): use global modifiers for checking if ctrl is used for zoom instead of mouse area events
example(copy): fixing copy example to use correct Method type
This commit is contained in:
parent
037190babd
commit
16c8c0df30
3 changed files with 7 additions and 67 deletions
|
|
@ -1,5 +1,6 @@
|
|||
use cosmic_files::operation::{recursive::Context, Controller, ReplaceResult};
|
||||
use std::{error::Error, io, path::PathBuf};
|
||||
use cosmic_files::operation::recursive::Method;
|
||||
|
||||
#[compio::main]
|
||||
async fn main() -> Result<(), Box<dyn Error>> {
|
||||
|
|
@ -30,13 +31,13 @@ async fn main() -> Result<(), Box<dyn Error>> {
|
|||
context
|
||||
.recursive_copy_or_move(
|
||||
vec![(PathBuf::from("test/a"), PathBuf::from("test/b"))],
|
||||
false,
|
||||
Method::Copy,
|
||||
)
|
||||
.await?;
|
||||
context
|
||||
.recursive_copy_or_move(
|
||||
vec![(PathBuf::from("test/b"), PathBuf::from("test/c"))],
|
||||
true,
|
||||
Method::Move { cross_device_copy: false },
|
||||
)
|
||||
.await?;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue