Skip to content

Commit

Permalink
v1.9.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nobody committed Feb 2, 2024
1 parent ae99eb3 commit 1459a86
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 5 deletions.
1 change: 1 addition & 0 deletions V2RayGCon/Controllers/FormMainComponent/FlyServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -729,6 +729,7 @@ private void InitComboBoxMarkFilter()
void PerformSearch()
{
searchKeywords = cboxKeyword.Text;
this.tslbTotal.Text = I18N.Searching;
RefreshFlyPanelNow();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,23 @@ public override bool SaveOptions()
var requireUpdateSummary = settings.ReplaceCustomConfigTemplates(datas);
if (requireUpdateSummary)
{
VgcApis.Misc.Utils.DoItLater(servers.UpdateAllServersSummary, 3000);
VgcApis.Misc.Utils.DoItLater(
() =>
{
var servs = servers
.GetAllServersOrderByIndex()
.Where(s => s.GetCoreStates().IsAcceptInjection())
.ToList();
foreach (var serv in servs)
{
serv.GetConfiger().UpdateSummary();
VgcApis.Misc.Logger.Debug(
$"update summary: {serv.GetCoreStates().GetTitle()}"
);
}
},
3000
);
}
return true;
}
Expand Down
8 changes: 6 additions & 2 deletions V2RayGCon/Misc/Caches/ZipStrLru.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,12 @@ public static bool TryGet(string key, out string content)
public static bool TryRemove(string key)
{
key = HashOnDemand(key);
VgcApis.Misc.Logger.Debug($"ZipStrLru remove cache : {key}");
return cache.Remove(key);
if (cache.Remove(key))
{
VgcApis.Misc.Logger.Debug($"ZipStrLru remove cache : {key}");
return true;
}
return false;
}
#endregion

Expand Down
3 changes: 2 additions & 1 deletion V2RayGCon/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,12 @@
// 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号
// 方法是按如下所示使用“*”: :
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.9.2.19")]
[assembly: AssemblyVersion("1.9.3.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

/*
--------------------------------------------------------------------
v1.9.2.19 Refresh summary after inject-template-settings changed.
v1.9.2.18 Add timeout to StringLruCache().
v1.9.2.17 Adjust save user settings interval from 5 minutes to 20 minutes.
Expand Down
3 changes: 3 additions & 0 deletions V2RayGCon/Resources/Resx/I18N.resx
Original file line number Diff line number Diff line change
Expand Up @@ -833,4 +833,7 @@ c:\vgc\V2RayGCon.exe -s s2.json</value>
<data name="Template" xml:space="preserve">
<value>Template</value>
</data>
<data name="Searching" xml:space="preserve">
<value>Searching...</value>
</data>
</root>
3 changes: 3 additions & 0 deletions V2RayGCon/Resources/Resx/I18N.zh-CN.resx
Original file line number Diff line number Diff line change
Expand Up @@ -824,4 +824,7 @@ c:\vgc\V2RayGCon.exe -s s2.json</value>
<data name="Template" xml:space="preserve">
<value>模板</value>
</data>
<data name="Searching" xml:space="preserve">
<value>搜索中...</value>
</data>
</root>
11 changes: 10 additions & 1 deletion V2RayGCon/Resources/Resx/I18N1.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1459a86

Please sign in to comment.