Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit 2d9386b3 authored by g4m4's avatar g4m4
Browse files

[SETTINGS] Make credentials override an option and update UI accordingly

parent 32510832
No related branches found
No related tags found
No related merge requests found
No preview for this file type
{
"FileVersion": 3,
"Version": 1,
"VersionName": "1.4",
"VersionName": "1.6",
"FriendlyName": "FixIt",
"Description": "A real-time feedback tool",
"Category": "Tools",
......
......@@ -22,7 +22,8 @@ UFixItSettings::UFixItSettings()
DefaultToken(TEXT(kDefaultCredentialsToken)),
bAllowCustomisingLabels(false),
bTitleIsMandatory(true),
bContentIsMandatory(true)
bContentIsMandatory(true),
bAllowCredentialsOverride(true)
{
ReadSettingsFromConfig();
}
......@@ -150,6 +151,10 @@ void UFixItSettings::ReadSettingsFromConfig() {
if (GConfig->GetBool(TEXT("/Script/FixItCore.FixItSettings"), TEXT("bContentIsMandatory"), ContentIsMandatory, InConfigFilename)) {
this->bContentIsMandatory = ContentIsMandatory;
}
bool AllowCredentialsOverride;
if (GConfig->GetBool(TEXT("/Script/FixItCore.FixItSettings"), TEXT("bAllowCredentialsOverride"), AllowCredentialsOverride, InConfigFilename)) {
this->bAllowCredentialsOverride = AllowCredentialsOverride;
}
int32 MaxTitleLength = 64;
if (GConfig->GetInt(TEXT("/Script/FixItCore.FixItSettings"), TEXT("MaxTitleLength"), MaxTitleLength, InConfigFilename)) {
this->MaxTitleLength = MaxTitleLength;
......
......@@ -76,6 +76,9 @@ public:
UPROPERTY(config, EditAnywhere, BlueprintReadOnly, AdvancedDisplay, Category = "UI", meta = (ToolTip = "Make the content mandatory on feedback report"))
uint32 bContentIsMandatory : 1;
UPROPERTY(config, EditAnywhere, BlueprintReadOnly, AdvancedDisplay, Category = "UI", meta = (ToolTip = "Allow the user to override the default credentials"))
uint32 bAllowCredentialsOverride : 1;
UPROPERTY(config, EditAnywhere, BlueprintReadOnly, AdvancedDisplay, Category = "UI", meta = (ToolTip = "Max issue title length, make sure your backend supports it!"))
int32 MaxTitleLength = 64;
......
# Changelog Releases - FixIt
## Version 1.6
Date 2025/02/24
- Move settings to a dedicated file
- Make credentials override an option
## Version 1.5
Date 2025/01/29
- Make issue title/content optionally not mandatory
- Upgrade to Fixit internal library 1.1
- Move settings to a dedicated file
## Version 1.4
Date 2025/01/27
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment