Update forms.py

Some info for the user regarding master/nightly
This commit is contained in:
VenimK
2025-02-27 06:25:29 +01:00
committed by GitHub
parent 8b8aff445a
commit 905d8039ef

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}")