GeorgRottensteiner / C64Studio

C64Studio is a .NET based IDE specializing in game development for the C64 in assembler and BASIC
Other
252 stars 38 forks source link

Solution corrupt after closing "New Project Wizard" dialog (C64Studio 7.8) #117

Closed hkramer70 closed 3 months ago

hkramer70 commented 3 months ago

Short: If I cancel the "New Project Wizard" in a solution then all content is gone/hidden in the Studio.

Detailed: I have a Solution with

I then wanted to add a new (sub)project. Therefore,

  1. I clicked on that tiny black triangle next to the "New Item" icon (just below the "File" menu item)
  2. I selected "Project..."
  3. A "New Project Wizard" came up (now, the solution content is already gone/hidden)
  4. I didn't change anything in the wizard and clicked on "Cancel"

Now, the solution is empty. No items are left in the "Solution Explorer" or in other windows. The solution file and its subfiles are still on the harddisk. But opening that solution again will still end up in that empty solution.

Screenshot 2024-06-14 164531

GeorgRottensteiner commented 3 months ago

Skip what I wrote before. That menu item is hard wired to create a new project (in a new solution), which seems wrong here. I'll fix that. And to add onto that, cancelling shouldn't close anything.

hkramer70 commented 3 months ago

Ok, fine. But keep in mind that the selection of the New Project changed/overwrote the content of the existing (and opened) solution. So, it didn't create a new solution with a new project.

GeorgRottensteiner commented 3 months ago

I just modified the behaviour of all "new project" items to work as "Add new project to existing solution" instead of "close solution and open new project wizard). In all cases I didn't get a cleared solution (checked with and without "Cancel"). I have to investigate at a later time why the other option basically kills the solution.

New WIP version is up (both issue 117 and 116 included)

hkramer70 commented 3 months ago

Works fine now. "Add new project" is not more descructive to the solution if you cancel the workflow 🥇

GeorgRottensteiner commented 3 months ago

Great, thanks for checking!