From 8a01f36d1021159f2c49ae8083febc046a4a8502 Mon Sep 17 00:00:00 2001 From: nextdaydelivery <79922345+nxtdaydelivery@users.noreply.github.com> Date: Mon, 25 Jul 2022 13:01:16 +0100 Subject: page button changes (#71) --- .../cc/polyfrost/oneconfig/config/gson/ProfileExclusionStrategy.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main/java/cc/polyfrost/oneconfig/config/gson/ProfileExclusionStrategy.java') diff --git a/src/main/java/cc/polyfrost/oneconfig/config/gson/ProfileExclusionStrategy.java b/src/main/java/cc/polyfrost/oneconfig/config/gson/ProfileExclusionStrategy.java index 0df63b0..591b0ac 100644 --- a/src/main/java/cc/polyfrost/oneconfig/config/gson/ProfileExclusionStrategy.java +++ b/src/main/java/cc/polyfrost/oneconfig/config/gson/ProfileExclusionStrategy.java @@ -3,6 +3,7 @@ package cc.polyfrost.oneconfig.config.gson; import cc.polyfrost.oneconfig.config.Config; import cc.polyfrost.oneconfig.config.annotations.Exclude; import cc.polyfrost.oneconfig.config.annotations.NonProfileSpecific; +import cc.polyfrost.oneconfig.gui.pages.Page; import com.google.gson.ExclusionStrategy; import com.google.gson.FieldAttributes; @@ -14,6 +15,7 @@ public class ProfileExclusionStrategy extends ExclusionUtils implements Exclusio @Override public boolean shouldSkipField(FieldAttributes f) { if (isSuperClassOf(f.getDeclaredClass(), Config.class)) return true; + if (isSuperClassOf(f.getDeclaredClass(), Page.class)) return true; if (f.getDeclaredClass().isAssignableFrom(Runnable.class)) return true; if (f.getAnnotation(NonProfileSpecific.class) != null) return true; Exclude exclude = f.getAnnotation(Exclude.class); -- cgit