Fix race condition in tauri and window not navigating in release mode

This commit is contained in:
Patrick Pacher
2024-03-27 12:52:52 +01:00
parent 3c0a362bff
commit 347e2d1982
5 changed files with 50 additions and 18 deletions

View File

@@ -7,7 +7,7 @@ use gtk_sys::{
};
use log::{debug, error};
use std::collections::HashMap;
use std::ffi::c_int;
use std::ffi::{c_char, c_int};
use std::ffi::{CStr, CString};
use std::io;
use std::path::{Path, PathBuf};
@@ -404,7 +404,7 @@ fn get_icon_as_png_dataurl(name: &str, size: i8) -> Result<(String, String)> {
let icon_info = gtk_icon_theme_lookup_icon(
GTK_DEFAULT_THEME.unwrap(),
c_str.as_ptr() as *const u8,
c_str.as_ptr() as *const c_char,
size as c_int,
0,
);