Skip to content

LastOpened can bork projects after deleting a screen #3689

@ewpatton

Description

@ewpatton

Describe the bug

After deleting a screen, the lastopened project property does not get properly reset and can cause App Inventor to fail if the screen named no longer exists. I suggest we both reset the lastopened property to Screen1 when this happen as well as put a guard in that if the screen doesn't exist we open Screen1 as well.

Affects

  • Designer
  • Blocks editor
  • Projects Explorer
  • Android Companion
  • iOS Companion
  • Android Compiled APK/AAB
  • iOS Compiled IPA
  • Buildserver
  • Debugging
  • Other... (please describe)

Expected behavior

Projects should reopen after deleting a screen.

Steps to reproduce

Not 100% sure yet, but I expect deleting a screen and then immediately closing the window should trigger the failure mode.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions