mirror of
https://github.com/2dust/v2rayN.git
synced 2026-11-05 20:15:00 +03:00
Replace all Utils.IsNullOrEmpty(variable) with variable.IsNullOrEmpty()
This commit is contained in:
@@ -272,7 +272,7 @@ namespace v2rayN.Desktop.Views
|
||||
cmbHeaderType.Items.Clear();
|
||||
|
||||
var network = cmbNetwork.SelectedItem.ToString();
|
||||
if (Utils.IsNullOrEmpty(network))
|
||||
if (network.IsNullOrEmpty())
|
||||
{
|
||||
cmbHeaderType.Items.Add(Global.None);
|
||||
return;
|
||||
@@ -313,7 +313,7 @@ namespace v2rayN.Desktop.Views
|
||||
private void SetTips()
|
||||
{
|
||||
var network = cmbNetwork.SelectedItem.ToString();
|
||||
if (Utils.IsNullOrEmpty(network))
|
||||
if (network.IsNullOrEmpty())
|
||||
{
|
||||
network = Global.DefaultNetwork;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user