Prechádzať zdrojové kódy

Fix `message_dialog` flag (#4204)

Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
Kasper 3 rokov pred
rodič
commit
80458a031b

+ 5 - 0
.changes/dialog-flag-fix.md

@@ -0,0 +1,5 @@
+---
+"tauri": patch
+---
+
+Fix ``cannot find macro `message_dialog` `` error.

+ 0 - 1
core/tauri/src/endpoints/dialog.rs

@@ -13,7 +13,6 @@ use tauri_macros::{command_enum, module_command_handler, CommandModule};
 
 use std::path::PathBuf;
 
-#[cfg(any(dialog_message, dialog_ask, dialog_confirm))]
 macro_rules! message_dialog {
   ($fn_name: ident, $allowlist: ident, $buttons: expr) => {
     #[module_command_handler($allowlist)]