Fix "CUSTOM" quality preset when Iris is present
This commit is contained in:
+1
@@ -42,6 +42,7 @@ public interface IConfigEntry<T>
|
||||
|
||||
void set(T newValue);
|
||||
T get();
|
||||
/** gets the option ignoring what the API has overridden */
|
||||
T getTrueValue();
|
||||
|
||||
/** Sets the value without saving */
|
||||
|
||||
+3
-1
@@ -48,7 +48,9 @@ public class ConfigEntryWithPresetOptions<TQuickEnum, TConfig>
|
||||
|
||||
public HashSet<TQuickEnum> getPossibleQualitiesFromCurrentOptionValue()
|
||||
{
|
||||
TConfig inputOptionValue = this.configEntry.get();
|
||||
// get true value so we can ignore API overrides,
|
||||
// users find this confusing if their preset is set to "CUSTOM"
|
||||
TConfig inputOptionValue = this.configEntry.getTrueValue();
|
||||
HashSet<TQuickEnum> possibleQualities = new HashSet<>();
|
||||
|
||||
for (TQuickEnum key : this.configOptionByQualityOption.keySet())
|
||||
|
||||
Reference in New Issue
Block a user