some little bits of debug info
This commit is contained in:
parent
b2eeb04855
commit
08cc744a31
2 changed files with 4 additions and 4 deletions
|
@ -536,9 +536,10 @@ mod service_item_model {
|
||||||
#[qinvokable]
|
#[qinvokable]
|
||||||
pub fn save(mut self: Pin<&mut Self>, file: QUrl) -> bool {
|
pub fn save(mut self: Pin<&mut Self>, file: QUrl) -> bool {
|
||||||
println!("rust-save-file: {file}");
|
println!("rust-save-file: {file}");
|
||||||
let lfr = fs::File::create(
|
let path =
|
||||||
&file.to_local_file().unwrap_or_default().to_string(),
|
file.to_local_file().unwrap_or_default().to_string();
|
||||||
);
|
println!("path: {:?}", path);
|
||||||
|
let lfr = fs::File::create(&path);
|
||||||
if let Ok(lf) = &lfr {
|
if let Ok(lf) = &lfr {
|
||||||
println!("archive: {:?}", lf);
|
println!("archive: {:?}", lf);
|
||||||
let encoder = Encoder::new(lf, 3).unwrap();
|
let encoder = Encoder::new(lf, 3).unwrap();
|
||||||
|
|
|
@ -6,7 +6,6 @@ mod song_model {
|
||||||
use diesel::sqlite::SqliteConnection;
|
use diesel::sqlite::SqliteConnection;
|
||||||
use diesel::{delete, insert_into, prelude::*, update};
|
use diesel::{delete, insert_into, prelude::*, update};
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
use std::path::{Path, PathBuf};
|
|
||||||
|
|
||||||
unsafe extern "C++" {
|
unsafe extern "C++" {
|
||||||
include!(< QAbstractListModel >);
|
include!(< QAbstractListModel >);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue