fixing small ui things and making audio picking use portal
This commit is contained in:
parent
4b6a079a4e
commit
9f4d426a8f
7 changed files with 189 additions and 151 deletions
|
@ -92,10 +92,12 @@ mod file_helper {
|
|||
}
|
||||
|
||||
#[qinvokable]
|
||||
pub fn load_file(self: Pin<&mut Self>) -> QUrl {
|
||||
let file = FileDialog::new()
|
||||
.set_title("Load Presentation")
|
||||
.pick_file();
|
||||
pub fn load_file(
|
||||
self: Pin<&mut Self>,
|
||||
title: QString,
|
||||
) -> QUrl {
|
||||
let title = title.to_string();
|
||||
let file = FileDialog::new().set_title(title).pick_file();
|
||||
if let Some(file) = file {
|
||||
println!("loading-file: {:?}", file);
|
||||
let mut string =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue