aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/cc/polyfrost/oneconfig/config/gson/ProfileExclusionStrategy.java
diff options
context:
space:
mode:
authornextdaydelivery <79922345+nxtdaydelivery@users.noreply.github.com>2022-07-25 13:01:16 +0100
committerGitHub <noreply@github.com>2022-07-25 13:01:16 +0100
commit8a01f36d1021159f2c49ae8083febc046a4a8502 (patch)
treeab79fa993952543131fb3b3f9fddc645c1456d1a /src/main/java/cc/polyfrost/oneconfig/config/gson/ProfileExclusionStrategy.java
parent2159b8d6cc7e0de418062fecb8e57244184e8820 (diff)
downloadOneConfig-8a01f36d1021159f2c49ae8083febc046a4a8502.tar.gz
OneConfig-8a01f36d1021159f2c49ae8083febc046a4a8502.tar.bz2
OneConfig-8a01f36d1021159f2c49ae8083febc046a4a8502.zip
page button changes (#71)
Diffstat (limited to 'src/main/java/cc/polyfrost/oneconfig/config/gson/ProfileExclusionStrategy.java')
-rw-r--r--src/main/java/cc/polyfrost/oneconfig/config/gson/ProfileExclusionStrategy.java2
1 files changed, 2 insertions, 0 deletions
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);