-
-
Notifications
You must be signed in to change notification settings - Fork 53
统信UOS操作系统设置托盘menu后会出现2个相同的图标。 #34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
flutter arm 版本是直接下载就能编译吗?最近我们也想做国产化适配,但是arm的机器太难买了 |
可以考虑在 m 系统芯片的 mac 上装虚拟机 |
感谢 |
Another problem is that the left-click and right-click menu pops up. . . I don’t know how to make left-click disabled. |
目前能简单处理的方案就是在设置menu的时候同时设置icon,不能分开设置。 static FlMethodResponse* setup(TrayManagerPlugin* self, FlValue* args) { if (!menu) if (!indicator) {
} app_indicator_set_status(indicator, APP_INDICATOR_STATUS_ACTIVE); const char* title = app_indicator_set_label(indicator, title, NULL); return FL_METHOD_RESPONSE( static FlMethodResponse* setup(TrayManagerPlugin* self, FlValue* args) { if (!menu) if (!indicator) {
} app_indicator_set_status(indicator, APP_INDICATOR_STATUS_ACTIVE); const char* title = app_indicator_set_label(indicator, title, NULL); return FL_METHOD_RESPONSE( |
统信UOS操作版本,专业版(1031),电脑为arm架构。
使用example就能复现。
setIcon后出现第一个托盘图标,该图标用鼠标点击左键和右键都能弹窗菜单;
调用setContextMenu设置托盘后会出现第2个相同的图标,该图标只能用鼠标右键弹窗菜单。
调用setContextMenu后报错
`
(tray_manager_example:20210): libayatana-appindicator-WARNING **: 12:00:14.835: Unable to connect to the Notification Watcher: GDBus.Error:com.deepin.DBus.Error.Unnamed: notifier item has been registered
(tray_manager_example:20210): Gdk-CRITICAL **: 12:00:14.929: gdk_window_thaw_toplevel_updates: assertion 'window->update_and_descendants_freeze_count > 0' failed
`
The text was updated successfully, but these errors were encountered: