chore(deps): update to tauri alpha.8 (#303)

This commit is contained in:
Lucas Fernandes Nogueira
2023-04-14 04:02:48 -07:00
committed by GitHub
parent 14e4705d55
commit bbdccefa2d
9 changed files with 35 additions and 37 deletions
+3 -3
View File
@@ -69,7 +69,7 @@ pub trait AppHandleExt {
impl<R: Runtime> AppHandleExt for tauri::AppHandle<R> {
fn save_window_state(&self, flags: StateFlags) -> Result<()> {
if let Some(app_dir) = self.path_resolver().app_config_dir() {
if let Ok(app_dir) = self.path().app_config_dir() {
let state_path = app_dir.join(STATE_FILENAME);
let cache = self.state::<WindowStateCache>();
let mut state = cache.0.lock().unwrap();
@@ -270,8 +270,8 @@ impl Builder {
let flags = self.state_flags;
PluginBuilder::new("window-state")
.setup(|app, _api| {
let cache: Arc<Mutex<HashMap<String, WindowState>>> = if let Some(app_dir) =
app.path_resolver().app_config_dir()
let cache: Arc<Mutex<HashMap<String, WindowState>>> = if let Ok(app_dir) =
app.path().app_config_dir()
{
let state_path = app_dir.join(STATE_FILENAME);
if state_path.exists() {