Skip to content

Commit 154018e

Browse files
committed
Set installedOnce flag upon integration success
1 parent ab0db27 commit 154018e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/main/java/org/scijava/desktop/DefaultDesktopService.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,9 @@ private void maybeAutoInstallDesktopIntegrations() {
294294
// We use a dedicated thread to avoid blocking context creation completion;
295295
// nothing in the desktop registration needs to be completed synchronously;
296296
// we just want to complete the work as soon as reasonably possible.
297-
threadService.run(() -> syncDesktopIntegration(true, true, true));
297+
threadService.run(() -> {
298+
syncDesktopIntegration(true, true, true);
299+
if (prefs != null) prefs.put(DesktopService.class, "installedOnce", true);
300+
});
298301
}
299302
}

0 commit comments

Comments
 (0)