Settings > System > Replay Intro > Cancel replays the intro upon closing Settings

When selecting "Replay Intro" in Settings > System, the restart dialog shows up. No matter which button is pressed on this dialog, the intro is replayed when Settings is closed.

I feel like pressing "Cancel" on this last dialog should not replay the intro, even if the only action you're canceling at the moment is the device reboot.

To fix it, in Settings/Source/system/systemview.lua, change:

local replayIntroAnimation = function()
	playdate.system.setFirstLaunchStatus(playdate.system.kPDFirstLaunchReplayIntroAnimation)
	restartAction()
end

to:

local replayIntroAnimation = function()
	Alert.show("Restart", [[
Are you sure you
want to restart?]], "OK", "Cancel", function(okSelected)
		if true == okSelected and 1 ~= playdate.isSimulator then
			playdate.system.setFirstLaunchStatus(playdate.system.kPDFirstLaunchReplayIntroAnimation)
			playdate.exit()
		end
	end)
end
1 Like

Thanks for the report! It did get filed, and a fix is in today's 2.3 update

Settings > System > Replay Intro no longer replays the intro when returning to the launcher after Cancel is selected.