mirror of
https://github.com/2dust/v2rayN.git
synced 2026-04-18 13:35:47 +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);
|
var running = await ConfigHandler.GetDefaultServer(_config);
|
||||||
if (running != null)
|
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 =
|
RunningServerDisplay =
|
||||||
RunningServerToolTipText = running.GetSummary();
|
RunningServerToolTipText = summary;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue