Skip to content

Commit

Permalink
Add auto update toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
Wyvest authored Aug 21, 2024
1 parent 8bbbf63 commit 6a27eed
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,11 @@ public class Preferences extends InternalConfig {
max = 100f
)
public static float trackerResponseDuration = 60;

@Switch(
name = "Auto Update"
)
public static boolean autoUpdate = true;

@Dropdown(
name = "Release Channel",
Expand Down Expand Up @@ -219,6 +224,10 @@ public Preferences() {
initialize();
addListener("enableBlur", () -> BlurHandler.INSTANCE.reloadBlur(Platform.getGuiPlatform().getCurrentScreen()));
registerKeyBind(oneConfigKeyBind, () -> new TickDelay(() -> Platform.getGuiPlatform().setCurrentScreen(OneConfigGui.create()), 1));
addListener("autoUpdate", () -> {
OneConfigConfig.autoUpdate = autoUpdate;
OneConfigConfig.getInstance().save();
});
addListener("updateChannel", () -> {
OneConfigConfig.updateChannel = updateChannel;
OneConfigConfig.getInstance().save();
Expand Down

2 comments on commit 6a27eed

@hannibal002
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👀

@Wyvest
Copy link
Member Author

@Wyvest Wyvest commented on 6a27eed Aug 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👀

thank blame jani

Please sign in to comment.