◐ Shell
clean mode source ↗

Display Welcome to Beta once per revision by catilac · Pull Request #1203 · processing/processing4

@catilac

Limits the Welcome to Beta screen to once per downloaded revision.

Closes #1198

catilac

Comment on lines +145 to +148

System.err.println("MOON DEBUG" +
Base.getRevision() + ", and lastBetaSeen is " +
lastBetaSeen + ".");

Choose a reason for hiding this comment

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

will remove this, i suppose

Choose a reason for hiding this comment

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

Yep, feel free to use Messages.log that will be hidden for users and will give us valuable information when looking at the logs

catilac

JFrame(windowTitle).apply {
val close = { dispose() }
val close = {
Preferences.set("beta.last_beta_welcome_seen", getRevision().toString())

Choose a reason for hiding this comment

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

i need a better key name. wondering your thoughts. should it be update.beta_welcome or something?

Choose a reason for hiding this comment

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

update.beta_prompt

Stefterv

if(latest < Base.getRevision()){
WelcomeToBeta.showWelcomeToBeta();

String lastBetaSeenStr = Preferences.get("beta.last_beta_welcome_seen");

Choose a reason for hiding this comment

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

I would say using Preferences.getInteger() would be a better choice here, to make sure it is never empty you can add the key to the defaults.txt in build/shared/lib/defaults.txt

@Stefterv Stefterv changed the title WIP: Display once per revision number Display Welcome to Beta once per revision

Aug 14, 2025

@Stefterv Stefterv marked this pull request as ready for review

August 14, 2025 05:12

Stefterv

SableRaf

@SableRaf

@allcontributors

@catilac catilac deleted the beta-welcome-logic branch

August 14, 2025 14:57