Skip to content

Commit 76f99ce

Browse files
authored
fix(dialog): pub export Dialog (#2108)
fixes #2107
1 parent 241319a commit 76f99ce

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.changes/fix-dialog-export-dialog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
dialog: patch
3+
---
4+
5+
The `Dialog` struct is now correctly exported, primarily to fix the documentation on `docs.rs`.

plugins/dialog/src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ use desktop::*;
3939
#[cfg(mobile)]
4040
use mobile::*;
4141

42+
#[cfg(desktop)]
43+
pub use desktop::Dialog;
44+
#[cfg(mobile)]
45+
pub use mobile::Dialog;
46+
4247
pub(crate) const OK: &str = "Ok";
4348
pub(crate) const CANCEL: &str = "Cancel";
4449
pub(crate) const YES: &str = "Yes";

0 commit comments

Comments
 (0)