edit_window: Fix new filename detection
This commit is contained in:
parent
9d0f7c5bfa
commit
b2e626091f
1 changed files with 5 additions and 7 deletions
|
|
@ -203,16 +203,14 @@ mod imp {
|
|||
new_path.set_file_name(new_filename);
|
||||
|
||||
let file = gio::File::for_path(&new_path);
|
||||
let file_exists = gio::CancellableFuture::new(
|
||||
file.query_info_future(
|
||||
let file_exists = file
|
||||
.query_info_future(
|
||||
gio::FILE_ATTRIBUTE_STANDARD_NAME,
|
||||
gio::FileQueryInfoFlags::NONE,
|
||||
glib::Priority::DEFAULT,
|
||||
),
|
||||
cancellable.clone(),
|
||||
)
|
||||
.await
|
||||
.is_ok();
|
||||
)
|
||||
.await
|
||||
.is_ok();
|
||||
|
||||
if !file_exists {
|
||||
suggested_file = Some(file);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue