A:增加网络占用TOP展示
This commit is contained in:
1 parent
1f06ca6cac
commit
1c56007afd
11 files changed
+891
-114
No files matched your search
@@ -87,6 +87,15 @@ public class AppSetting
|
||||
/// </summary>
|
||||
public bool AutoStart { get; set; } = false;
|
||||
|
||||
/// <summary>
|
||||
/// 是否显示网速Top榜 (只在横向布局时可用)
|
||||
/// </summary>
|
||||
public bool ShowNetworkTopList { get; set; } = false;
|
||||
|
||||
/// <summary>
|
||||
/// 网速Top榜显示数量 (1-5)
|
||||
/// </summary>
|
||||
public int NetworkTopListCount { get; set; } = 3;
|
||||
|
||||
/// <summary>
|
||||
/// 更新时间
|
||||
|
||||
@@ -82,6 +82,8 @@ public class NetVizorDbContext : IDisposable
|
||||
DoubleClickAction INTEGER DEFAULT 0,
|
||||
RunAsAdmin INTEGER DEFAULT 0,
|
||||
AutoStart INTEGER DEFAULT 0,
|
||||
ShowNetworkTopList INTEGER DEFAULT 0,
|
||||
NetworkTopListCount INTEGER DEFAULT 3,
|
||||
UpdateTime INTEGER NOT NULL
|
||||
)");
|
||||
|
||||
@@ -282,7 +284,8 @@ public class NetVizorDbContext : IDisposable
|
||||
var needsMigration = columns.Contains("WindowWidth") || columns.Contains("WindowHeight") ||
|
||||
columns.Contains("Theme") || columns.Contains("Language") ||
|
||||
columns.Contains("MonitoringEnabled") ||
|
||||
!columns.Contains("IsClickThrough") || !columns.Contains("TextColor");
|
||||
!columns.Contains("IsClickThrough") || !columns.Contains("TextColor") ||
|
||||
!columns.Contains("ShowNetworkTopList") || !columns.Contains("NetworkTopListCount");
|
||||
|
||||
if (needsMigration)
|
||||
{
|
||||
@@ -315,6 +318,8 @@ public class NetVizorDbContext : IDisposable
|
||||
DoubleClickAction INTEGER DEFAULT 0,
|
||||
RunAsAdmin INTEGER DEFAULT 0,
|
||||
AutoStart INTEGER DEFAULT 0,
|
||||
ShowNetworkTopList INTEGER DEFAULT 0,
|
||||
NetworkTopListCount INTEGER DEFAULT 3,
|
||||
UpdateTime INTEGER NOT NULL
|
||||
)");
|
||||
|
||||
|
||||
@@ -73,6 +73,8 @@ public class DataService : IDataService, IDisposable
|
||||
DoubleClickAction = 0, // None
|
||||
RunAsAdmin = false,
|
||||
AutoStart = false,
|
||||
ShowNetworkTopList = false, // 默认关闭网速Top榜
|
||||
NetworkTopListCount = 3, // 默认显示3个
|
||||
UpdateTime = DateTimeOffset.UtcNow.ToUnixTimeSeconds()
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user