mirror of
https://github.com/2dust/v2rayN.git
synced 2026-04-16 12:35:46 +00:00
Prepend subscription group name in status bar if possible
format: "<group>: <original text>" Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: pzhlkj6612 <29089388+pzhlkj6612@users.noreply.github.com>
This commit is contained in:
parent
c0aa829abb
commit
dd0f5c5706
1 changed files with 10 additions and 1 deletions
|
|
@ -291,8 +291,17 @@ public class StatusBarViewModel : MyReactiveObject
|
|||
var running = await ConfigHandler.GetDefaultServer(_config);
|
||||
if (running != null)
|
||||
{
|
||||
var summary = running.GetSummary();
|
||||
if (running.Subid.IsNotEmpty())
|
||||
{
|
||||
var subItem = await AppManager.Instance.GetSubItem(running.Subid);
|
||||
if (subItem != null)
|
||||
{
|
||||
summary = $"{subItem.Remarks}: {summary}";
|
||||
}
|
||||
}
|
||||
RunningServerDisplay =
|
||||
RunningServerToolTipText = running.GetSummary();
|
||||
RunningServerToolTipText = summary;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue