A major issue with deleting scenarios in SE. There are two scenarios that I created to reproduce the issue.
The scenario of the problem of scenarios not being deleted:



If you try the other way around by deleting a scenario from 'Go Online' list, no scenario is not deleted from the Offline list either.
It looks like the dictionary is not built properly. A fix to deleting scenarios should be done in this kind of situations.
Another scenario which occasionally causes a black screen.
Once I had it, other time literally nothing happened.
I think the black screen happens when you create a copy of a certain scenario for the first time. If you happened to create it in the past, it will do nothing. So, create a copy of a scenario that you've never done it.
According to the output_log 'The given key was not present in the dictionary.'.
https://github.com/NPBruce/valkyrie/files/2881605/output_log.txt
There are possibly two problems:
OK thanks for all the details I will have a look.
OK I have a fix.
The editor scenario were not supported properly, and directories were not deleted.
The tests and error cases created some side effect on the management of quest list for .valkyrie files.
In the fix I made for this issue, I made it possible to delete the scenario being edited (the scenarios that are in the /editor directory).
I'm not sure this is such a good idea.
@scrubbless @redwolf2 what do you think ?
Maybe we could later add a safety dialog "Delete scenario? Yes/No" or add a dialog that says: "Scenarios created in the Editor can only be deleted from the Scenario Editor selection dialog".
I think deleting scenarios, no matter of a kind, should be possible from a splash screen so there is no need going back to Editor menu.
@redwolf2, I like your idea of the confirmation dialog. It could be a simple thing:


The design is plain and simple. It'd could be an enhancement for another release.
PS. Grey vs White Back button:

I agree we should add a confirmation.
But for 2.2, we will just remove the delete button for editor scenarios.
Let's avoid the big drama of someone losing weeks of work because he thought he was deleting something else.
Sure. I created new tickets for the confirmation enhancement (https://github.com/NPBruce/valkyrie/issues/1081) and the buttons' colours enhancement (https://github.com/NPBruce/valkyrie/issues/1082).
Fix done.
To make it simple, I do not show the delete button for directories.
I only show it for .valkyrie files.
I will now close this ticket as you have created other tickets for the points we have discussed.
Most helpful comment
I agree we should add a confirmation.
But for 2.2, we will just remove the delete button for editor scenarios.
Let's avoid the big drama of someone losing weeks of work because he thought he was deleting something else.