Golden Water

Results 8 comments of Golden Water

I think this event isn't a solution for #218, it's not emitted for the click on dock icon, and it's emitted every time the app gains focus I think it's...

> do you plan to work on adding this event to tauri? yes

> See here for a working example, the feature exists, it's just not very explicit > > https://github.com/martpie/museeks/blob/tauri/src-tauri/src/plugins/app_close.rs it's actually not the same thing, the activate event is a event...

since tao is a fork of [winit](https://github.com/rust-windowing/winit) and it's planned to keep features sync with it(#470) for [switch back](https://github.com/tauri-apps/tao?tab=readme-ov-file#acknowledgement) to it in the feature, so probably need this issue(rust-windowing/winit#2120) be...

This issue by my understand is about emit an event when click on the dock icon regardless the state of focus

and a side note, the [appkit::NSEventSubtype::NSApplicationActivatedEventType](https://developer.apple.com/documentation/appkit/nsapplicationactivatedeventtype) is deprecated

this issue is because the `suggest_size` of `scale_factor_change` event is get from a cached ns_view and the actual ns_view is replaced by the wry [suggest_size](https://github.com/tauri-apps/tao/blob/dev/src/platform_impl/macos/window_delegate.rs#L102) [view_size](https://github.com/tauri-apps/tao/blob/dev/src/platform_impl/macos/window_delegate.rs#L134) [ns_view](https://github.com/tauri-apps/tao/blob/dev/src/platform_impl/macos/window_delegate.rs#L64) [wry replacing ns_view](https://github.com/tauri-apps/wry/blob/dev/src/webview/wkwebview/mod.rs#L812)...

猜想: https://api.bilibili.com/x/polymer/web-dynamic/v1/feed/all/update?type=all 返回的是所有类型的动态的未读数, 而顶栏动态只能读到视频的动态, 所以会有消不掉的未读数, 点进[动态页面](https://t.bilibili.com/)后这消不掉的未读数确实消失了 建议的解决方法, 使用 https://api.bilibili.com/x/web-interface/dynamic/entrance 里的 `update_info.item.count` 来获取顶栏动态的未读数 建议 Reopen 该 Issue