Code clean

pull/3728/head
2dust 2023-04-16 20:45:47 +08:00
parent bf6dcdf2bd
commit 6e8a3a4867
2 changed files with 7 additions and 7 deletions

View File

@ -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;
}

View File

@ -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;
}