Skip to content

Commit 438b8ff

Browse files
committed
improve(meta): add opt-out for checking for newer version
1 parent c1d72dd commit 438b8ff

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

config/config.spec.hocon

+4
Original file line numberDiff line numberDiff line change
@@ -153,3 +153,7 @@ ui: {
153153
height: "int | 60"
154154
}
155155
}
156+
157+
update: {
158+
check: "boolean | true"
159+
}

src/main/java/io/github/kamitejp/Kamite.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,9 @@ public void run(Map<String,String> args, BuildInfo buildInfo) {
323323
);
324324
}
325325

326-
Executor.get().execute(() -> notifyIfNewerVersionAvailable(buildInfo));
326+
if (config.update().check()) {
327+
Executor.get().execute(() -> notifyIfNewerVersionAvailable(buildInfo));
328+
}
327329

328330
Runtime.getRuntime().addShutdownHook(new Thread(this::destroy));
329331
}

0 commit comments

Comments
 (0)