[GH-ISSUE #2356] [bug]托盘tray展示问题 #1507

Closed
opened 2026-02-27 00:03:49 +03:00 by kerem · 1 comment
Owner

Originally created by @rexlevin on GitHub (Jan 20, 2022).
Original GitHub issue: https://github.com/electerm/electerm/issues/2356

Electerm version(版本号):

从有tray的版本到目前1.17.26的版本都有

Operating system(linux, macos, or windows7/8/10?)(操作系统):

ubuntu20.04 unity

Expected Behavior(期望的行为)

先读取用户对tray是否展示的配置,然后再决定是否展示tray

Current Behavior(当前行为)

目前是启动应用时,直接就初始化并展示tray,然后再读取用户配置,然后再展示/不展示tray

Possible Solution(可能的解决办法)

init-app时不要直接initTray(menu),先读取用户配置,根据用户配置来决定是否initTray(menu)

Originally created by @rexlevin on GitHub (Jan 20, 2022). Original GitHub issue: https://github.com/electerm/electerm/issues/2356 <!--- Provide some basic info --> ## Electerm version(版本号): 从有tray的版本到目前1.17.26的版本都有 ## Operating system(linux, macos, or windows7/8/10?)(操作系统): ubuntu20.04 unity ## Expected Behavior(期望的行为) <!--- Tell me what should happen --> 先读取用户对tray是否展示的配置,然后再决定是否展示tray ## Current Behavior(当前行为) <!--- Tell me what happens instead of the expected behavior --> 目前是启动应用时,直接就初始化并展示tray,然后再读取用户配置,然后再展示/不展示tray ## Possible Solution(可能的解决办法) <!--- Not obligatory, but suggest a fix/reason for the bug, --> init-app时不要直接initTray(menu),先读取用户配置,根据用户配置来决定是否initTray(menu)
kerem 2026-02-27 00:03:49 +03:00
Author
Owner

@zxdong262 commented on GitHub (May 3, 2022):

已经去掉

<!-- gh-comment-id:1116763476 --> @zxdong262 commented on GitHub (May 3, 2022): 已经去掉
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/electerm#1507
No description provided.