From 7dedc7e3fcb3fd9fc52b198aa6c8adb488c6540e Mon Sep 17 00:00:00 2001 From: muwoo <2424880409@qq.com> Date: Fri, 31 May 2024 16:25:40 +0800 Subject: [PATCH 1/2] refactor(windows): Modify the flashing behavior of UserAttentionType::Informational in multiple windows --- src/platform_impl/windows/window.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform_impl/windows/window.rs b/src/platform_impl/windows/window.rs index fd2c4c3e2..bec74b4cf 100644 --- a/src/platform_impl/windows/window.rs +++ b/src/platform_impl/windows/window.rs @@ -883,7 +883,7 @@ impl Window { let (flags, count) = request_type .map(|ty| match ty { UserAttentionType::Critical => (FLASHW_ALL | FLASHW_TIMERNOFG, u32::MAX), - UserAttentionType::Informational => (FLASHW_TRAY | FLASHW_TIMERNOFG, 0), + UserAttentionType::Informational => (FLASHW_TRAY, 3), }) .unwrap_or((FLASHW_STOP, 0)); From eb02bef9145319a1126e4810747cdc74e4da38f7 Mon Sep 17 00:00:00 2001 From: muwoo <2424880409@qq.com> Date: Fri, 31 May 2024 16:36:15 +0800 Subject: [PATCH 2/2] refactor(windows): add change markdown --- .changes/refactor-attention-type-informational.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changes/refactor-attention-type-informational.md diff --git a/.changes/refactor-attention-type-informational.md b/.changes/refactor-attention-type-informational.md new file mode 100644 index 000000000..f8869a78e --- /dev/null +++ b/.changes/refactor-attention-type-informational.md @@ -0,0 +1,5 @@ +--- +"tao": "patch" +--- + +**Breaking Change**: Replace `UserAttentionType::Informational => (FLASHW_TRAY | FLASHW_TIMERNOFG, 0)` with `UserAttentionType::Informational => (FLASHW_TRAY, 3)`