fix(core): export ProgressBarStatus (#8986)

closes #8960
This commit is contained in:
Amr Bashir 2024-02-26 19:52:14 +02:00 committed by GitHub
parent 06d63d67a0
commit 60bf11abcb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 1 deletions

View File

@ -0,0 +1,5 @@
---
'tauri': 'patch:bug'
---
Export `ProgressBarStatus`, regression introduced in `2.0.0-beta.4`

View File

@ -12,6 +12,9 @@ use tauri_runtime::{
};
pub use tauri_utils::{config::Color, WindowEffect as Effect, WindowEffectState as EffectState};
#[cfg(desktop)]
pub use crate::runtime::ProgressBarStatus;
use crate::{
app::AppHandle,
event::{Event, EventId, EventTarget},
@ -1939,7 +1942,7 @@ tauri::Builder::default()
#[derive(serde::Deserialize)]
pub struct ProgressBarState {
/// The progress bar status.
pub status: Option<crate::runtime::ProgressBarStatus>,
pub status: Option<ProgressBarStatus>,
/// The progress bar progress. This can be a value ranging from `0` to `100`
pub progress: Option<u64>,
}