From 58ab80881514cd63f72815655cdd0accc81bab39 Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Thu, 12 Sep 2024 17:38:51 -0300 Subject: [PATCH] prompt --- ...-unknown-case.md => fix-permission-state-unknown-display.md} | 2 +- crates/tauri/src/plugin.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename .changes/{fix-permission-state-unknown-case.md => fix-permission-state-unknown-display.md} (69%) diff --git a/.changes/fix-permission-state-unknown-case.md b/.changes/fix-permission-state-unknown-display.md similarity index 69% rename from .changes/fix-permission-state-unknown-case.md rename to .changes/fix-permission-state-unknown-display.md index 43b026aa8d80..4d21c2b05afb 100644 --- a/.changes/fix-permission-state-unknown-case.md +++ b/.changes/fix-permission-state-unknown-display.md @@ -2,4 +2,4 @@ "tauri": patch:bug --- -Fix display implementation of `PermissionState::Unknown` not generating the lowercased `unknown` string. +Fix display implementation of `PermissionState::Unknown` not generating the `prompt` string. diff --git a/crates/tauri/src/plugin.rs b/crates/tauri/src/plugin.rs index d5f367dcffdb..a504754d7d20 100644 --- a/crates/tauri/src/plugin.rs +++ b/crates/tauri/src/plugin.rs @@ -923,7 +923,7 @@ impl std::fmt::Display for PermissionState { Self::Granted => write!(f, "granted"), Self::Denied => write!(f, "denied"), Self::PromptWithRationale => write!(f, "prompt-with-rationale"), - Self::Unknown => write!(f, "unknown"), + Self::Unknown => write!(f, "prompt"), } } }