added autodelete WDB option

This commit is contained in:
aomizu
2025-06-21 09:40:34 +09:00
parent 2abe296278
commit b2f92a8774
5 changed files with 32 additions and 1 deletions

View File

@@ -35,6 +35,7 @@ func showOptionsPopup() {
metalHudCheckbox,
showTerminalCheckbox,
vanillaTweaksCheckbox,
autoDeleteWdbCheckbox,
widget.NewSeparator(),
container.NewBorder(nil, nil, recommendedSettingsLabel, container.NewHBox(applyRecommendedSettingsButton, recommendedSettingsHelpButton), nil),
widget.NewSeparator(),
@@ -74,7 +75,7 @@ func showOptionsPopup() {
// Get the window size and calculate 2/3 size
windowSize := currentWindow.Content().Size()
popupWidth := windowSize.Width * 5 / 6
popupHeight := windowSize.Height * 5 / 6
popupHeight := windowSize.Height * 9 / 10
// Create a modal popup
popup := widget.NewModalPopUp(popupContent, currentWindow.Canvas())