Skip to content

Commit

Permalink
fix(dialog): pub export Dialog (#2108)
Browse files Browse the repository at this point in the history
fixes #2107
  • Loading branch information
FabianLars authored Nov 27, 2024
1 parent 241319a commit 76f99ce
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changes/fix-dialog-export-dialog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
dialog: patch
---

The `Dialog` struct is now correctly exported, primarily to fix the documentation on `docs.rs`.
5 changes: 5 additions & 0 deletions plugins/dialog/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ use desktop::*;
#[cfg(mobile)]
use mobile::*;

#[cfg(desktop)]
pub use desktop::Dialog;
#[cfg(mobile)]
pub use mobile::Dialog;

pub(crate) const OK: &str = "Ok";
pub(crate) const CANCEL: &str = "Cancel";
pub(crate) const YES: &str = "Yes";
Expand Down

0 comments on commit 76f99ce

Please sign in to comment.