Skip to content

Commit

Permalink
调整订阅分组设置窗口的布局 (2dust#6132)
Browse files Browse the repository at this point in the history
* 调整订阅分组设置窗口的布局

* 避免添加配置后出现滚动条
  • Loading branch information
SpaceTimee authored Nov 23, 2024
1 parent 50f39dc commit 22009d1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion v2rayN/ServiceLib/Handler/ConfigHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ public static async Task<int> SetDefaultServer(Config config, List<ProfileItemMo
}

var item = await SQLiteHelper.Instance.TableAsync<ProfileItem>().FirstOrDefaultAsync(t => t.Port > 0);
return await SetDefaultServerIndex(config, item.IndexId);
return await SetDefaultServerIndex(config, item?.IndexId);
}

public static async Task<ProfileItem?> GetDefaultServer(Config config)
Expand Down
2 changes: 1 addition & 1 deletion v2rayN/v2rayN.Desktop/Views/SubSettingWindow.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
Binding="{Binding Remarks}"
Header="{x:Static resx:ResUI.LvRemarks}" />
<DataGridTextColumn
Width="150"
Width="*"
Binding="{Binding Url}"
Header="{x:Static resx:ResUI.LvUrl}" />
<DataGridCheckBoxColumn
Expand Down
2 changes: 1 addition & 1 deletion v2rayN/v2rayN/Views/SubSettingWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
Binding="{Binding Remarks}"
Header="{x:Static resx:ResUI.LvRemarks}" />
<DataGridTextColumn
Width="150"
Width="*"
Binding="{Binding Url}"
Header="{x:Static resx:ResUI.LvUrl}" />
<DataGridCheckBoxColumn
Expand Down

0 comments on commit 22009d1

Please sign in to comment.