Skip to content

Commit 60bf11a

Browse files
authored
fix(core): export ProgressBarStatus (#8986)
closes #8960
1 parent 06d63d6 commit 60bf11a

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'tauri': 'patch:bug'
3+
---
4+
5+
Export `ProgressBarStatus`, regression introduced in `2.0.0-beta.4`

core/tauri/src/window/mod.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ use tauri_runtime::{
1212
};
1313
pub use tauri_utils::{config::Color, WindowEffect as Effect, WindowEffectState as EffectState};
1414

15+
#[cfg(desktop)]
16+
pub use crate::runtime::ProgressBarStatus;
17+
1518
use crate::{
1619
app::AppHandle,
1720
event::{Event, EventId, EventTarget},
@@ -1939,7 +1942,7 @@ tauri::Builder::default()
19391942
#[derive(serde::Deserialize)]
19401943
pub struct ProgressBarState {
19411944
/// The progress bar status.
1942-
pub status: Option<crate::runtime::ProgressBarStatus>,
1945+
pub status: Option<ProgressBarStatus>,
19431946
/// The progress bar progress. This can be a value ranging from `0` to `100`
19441947
pub progress: Option<u64>,
19451948
}

0 commit comments

Comments
 (0)