Skip to content

Commit add42ce

Browse files
authored
Merge pull request #1 from Hex-Dragon/main
[Update] Sync Code
2 parents 79ac4ad + 0b181ba commit add42ce

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Plain Craft Launcher 2/Pages/PageSetup/PageSetupLaunch.xaml.vb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@
213213
End If
214214
'设置文本
215215
LabRamGame.Text = If(RamGame = Math.Floor(RamGame), RamGame & ".0", RamGame) & " GB" &
216-
If(RamGame <> RamGameActual, " (可用 " & If(RamGameActual = Math.Floor(RamGameActual), RamGameActual & ".0", RamGameActual) & " GB)", "")
216+
If(Math.Abs(RamGame - RamGameActual) > 0.05, " (可用 " & If(RamGameActual = Math.Floor(RamGameActual), RamGameActual & ".0", RamGameActual) & " GB)", "")
217217
LabRamUsed.Text = If(RamUsed = Math.Floor(RamUsed), RamUsed & ".0", RamUsed) & " GB"
218218
LabRamTotal.Text = " / " & If(RamTotal = Math.Floor(RamTotal), RamTotal & ".0", RamTotal) & " GB"
219219
LabRamWarn.Visibility = If(RamGame = 1 AndAlso Not JavaIs64Bit() AndAlso Not Is32BitSystem AndAlso JavaList.Any, Visibility.Visible, Visibility.Collapsed)

Plain Craft Launcher 2/Pages/PageVersion/PageVersionExport.xaml.vb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ Public Class PageVersionExport
3333
TextExportName.HintText = PageVersionLeft.Version.Name
3434
TextExportVersion.Text = ""
3535
TextExportVersion.HintText = "1.0.0"
36+
CheckAdvancedModrinth.Checked = False
3637
GetExportOption(CheckOptionsBasic).Description = PageVersionLeft.Version.GetDefaultDescription()
3738
ResetConfigOverrides()
3839
ReloadAllSubOptions()

0 commit comments

Comments
 (0)