Skip to content

Commit c4c61f1

Browse files
committed
feat: make label accessible for windowwrapper
1 parent cedcc3d commit c4c61f1

File tree

1 file changed

+7
-1
lines changed
  • crates/tauri-runtime-wry/src

1 file changed

+7
-1
lines changed

crates/tauri-runtime-wry/src/lib.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2372,7 +2372,7 @@ impl Drop for WebviewWrapper {
23722372
}
23732373

23742374
pub struct WindowWrapper {
2375-
pub label: String,
2375+
label: String,
23762376
inner: Option<Arc<Window>>,
23772377
// whether this window has child webviews
23782378
// or it's just a container for a single webview
@@ -2388,6 +2388,12 @@ pub struct WindowWrapper {
23882388
focused_webview: Arc<Mutex<Option<String>>>,
23892389
}
23902390

2391+
impl WindowWrapper {
2392+
pub fn label(&self) -> String {
2393+
self.label.clone()
2394+
}
2395+
}
2396+
23912397
impl fmt::Debug for WindowWrapper {
23922398
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
23932399
f.debug_struct("WindowWrapper")

0 commit comments

Comments
 (0)