Opening a non-Anvil mission and converting to an Anvil mission doesn't save opened path #15

Closed
will-hart opened this Issue Dec 15, 2014 · 1 comment

Comments

Projects
None yet
1 participant
@will-hart
Owner

will-hart commented Dec 15, 2014

This means that when you try to save the mission it prompts for a path again.

It also doesn't explain to the user that the contents of the folder may be over written.

@will-hart will-hart self-assigned this Dec 15, 2014

@will-hart will-hart added this to the 6.4 milestone Dec 15, 2014

@will-hart

This comment has been minimized.

Show comment
Hide comment
@will-hart

will-hart Dec 15, 2014

Owner

Caused by this line - https://github.com/will-hart/AnvilEditor/blob/develop/AnvilEditor/MainWindow.xaml.cs#L749 - it shows the new mission flyout and then saves. Meanwhile the user chooses a map and clears this.loadedPath so that it appears as if no mission has been opened.

Best solution is to try to guess the map being used by looking for a .ISLAND_NAME ending and avoid the new mission dialog altogether.

Owner

will-hart commented Dec 15, 2014

Caused by this line - https://github.com/will-hart/AnvilEditor/blob/develop/AnvilEditor/MainWindow.xaml.cs#L749 - it shows the new mission flyout and then saves. Meanwhile the user chooses a map and clears this.loadedPath so that it appears as if no mission has been opened.

Best solution is to try to guess the map being used by looking for a .ISLAND_NAME ending and avoid the new mission dialog altogether.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment