Merge pull request #42 from VenimK/patch-12

Update forms.py
This commit is contained in:
Bryan
2025-02-27 11:21:32 -06:00
committed by GitHub

View File

@@ -5,6 +5,7 @@ class GenerateForm(forms.Form):
#Platform
platform = forms.ChoiceField(choices=[('windows','Windows'),('linux','Linux (currently unavailable)'),('android','Android'),('macos','macOS')], initial='windows')
version = forms.ChoiceField(choices=[('master','nightly'),('1.3.8','1.3.8'),('1.3.7','1.3.7'),('1.3.6','1.3.6'),('1.3.5','1.3.5'),('1.3.4','1.3.4'),('1.3.3','1.3.3')], initial='1.3.8')
help_text="'master' is the development version (nightly build) with the latest features but may be less stable")
delayFix = forms.BooleanField(initial=True, required=False)
#General
@@ -102,4 +103,4 @@ class GenerateForm(forms.Form):
except OSError: # Handle cases where the uploaded file is not a valid image
raise forms.ValidationError("Invalid icon file.")
except Exception as e: # Catch any other image processing errors
raise forms.ValidationError(f"Error processing icon: {e}")
raise forms.ValidationError(f"Error processing icon: {e}")