瀏覽代碼

Fix `message_dialog` flag (#4204)

Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
Kasper 3 年之前
父節點
當前提交
80458a031b
共有 2 個文件被更改,包括 5 次插入1 次删除
  1. 5 0
      .changes/dialog-flag-fix.md
  2. 0 1
      core/tauri/src/endpoints/dialog.rs

+ 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)]