mirror of
https://github.com/netchx/netch.git
synced 2026-05-11 23:45:06 +08:00
ProfileTableColumnCount value check
This commit is contained in:
@@ -904,6 +904,8 @@ namespace Netch.Forms
|
||||
{
|
||||
// Load Profiles
|
||||
|
||||
if (Global.Settings.ProfileTableColumnCount == 0)
|
||||
Global.Settings.ProfileTableColumnCount = 5;
|
||||
var columnCount = Global.Settings.ProfileTableColumnCount;
|
||||
|
||||
ProfileTable.ColumnCount = profileCount >= columnCount ? columnCount : profileCount;
|
||||
|
||||
@@ -198,6 +198,11 @@ namespace Netch.Models
|
||||
/// </summary>
|
||||
public List<Profile> Profiles = new();
|
||||
|
||||
/// <summary>
|
||||
/// 配置最大列数
|
||||
/// </summary>
|
||||
public byte ProfileTableColumnCount = 5;
|
||||
|
||||
/// <summary>
|
||||
/// 是否使用RDR内置SS
|
||||
/// </summary>
|
||||
@@ -289,11 +294,6 @@ namespace Netch.Models
|
||||
public bool UseProxyToUpdateSubscription = false;
|
||||
|
||||
public V2rayConfig V2RayConfig = new();
|
||||
|
||||
/// <summary>
|
||||
/// 配置最大列数
|
||||
/// </summary>
|
||||
public int ProfileTableColumnCount = 5;
|
||||
|
||||
public Setting Clone()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user