mirror of https://github.com/2dust/v2rayN
Code clean
parent
bf6dcdf2bd
commit
6e8a3a4867
|
@ -371,19 +371,19 @@ namespace v2rayN
|
|||
long TBs = GBs / factor;
|
||||
if (TBs > 0)
|
||||
{
|
||||
result = TBs + (GBs % factor / (factor + 0.0));
|
||||
result = TBs + ((GBs % factor) / (factor + 0.0));
|
||||
unit = "TB";
|
||||
return;
|
||||
}
|
||||
result = GBs + (MBs % factor / (factor + 0.0));
|
||||
result = GBs + ((MBs % factor) / (factor + 0.0));
|
||||
unit = "GB";
|
||||
return;
|
||||
}
|
||||
result = MBs + (KBs % factor / (factor + 0.0));
|
||||
result = MBs + ((KBs % factor) / (factor + 0.0));
|
||||
unit = "MB";
|
||||
return;
|
||||
}
|
||||
result = KBs + (amount % factor / (factor + 0.0));
|
||||
result = KBs + ((amount % factor) / (factor + 0.0));
|
||||
unit = "KB";
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -1424,7 +1424,7 @@ namespace v2rayN.ViewModels
|
|||
{
|
||||
MyAppExit(false);
|
||||
}
|
||||
};
|
||||
}
|
||||
(new UpdateHandle()).CheckUpdateGuiN(_config, _updateUI, _config.guiItem.checkPreReleaseUpdate);
|
||||
}
|
||||
|
||||
|
@ -1453,7 +1453,7 @@ namespace v2rayN.ViewModels
|
|||
File.Delete(fileName);
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
(new UpdateHandle()).CheckUpdateCore(type, _config, _updateUI, _config.guiItem.checkPreReleaseUpdate);
|
||||
}
|
||||
|
||||
|
@ -1660,7 +1660,7 @@ namespace v2rayN.ViewModels
|
|||
//Application.Current.MainWindow.ShowInTaskbar = false;
|
||||
//IntPtr windowHandle = new WindowInteropHelper(Application.Current.MainWindow).Handle;
|
||||
//Utils.RegWriteValue(Global.MyRegPath, Utils.WindowHwndKey, Convert.ToString((long)windowHandle));
|
||||
};
|
||||
}
|
||||
Global.ShowInTaskbar = bl;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue