You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Savegames in save/load dialog are displayed fully, with extensions. But when you click on an existing filename to overwrite it, its full name is put into the save name input, and when user submits it by either clicking on a Save button or double clicking on an existing entry, additional .gz is added to what was in the save name input.
To Reproduce
Steps to reproduce the behavior:
Go to 'Save' dialog
Enter test name
Click on 'Save'
Do any noticeable change in game (move unit, etc)
Go to Save dialog again
See test.sav.gz in the list, click on it twice
Go to Load dialog.
See a single test.sav.gz in the savegames list, double click it
See that a first save is loaded, with no change from p.4
Look into the savegame directory (~/.stratagus/wc2/save or whatever it is on your platform) - you'll see test.sav.gz with an older timestamp and test.sav.gz.gz with a newer timestamp. The first file is the one that is displayed in the Save/Load dialogs, but the second one is thats actually gets written when you double click on an existing entry in a Save dialog.
Expected behavior
filename extensions aren't displayed in the list in Save/Load dialogs
when you click on an existing entry to be overwritten, it gets overwritten, and no new obscured file is created
Screenshots and Logs
Save dialog after step 6 is performed:
Load dialog after step 6 is performed:
Filesystem after step 6 is performed:
$ ls -l ~/.stratagus/wc2/save/test*
54609 Nov 1 13:57 test.sav.gz
55279 Nov 1 14:05 test.sav.gz.gz
Desktop (please complete the following information):
OS: Kubuntu
Version 21.04
The text was updated successfully, but these errors were encountered:
Describe the bug
Savegames in save/load dialog are displayed fully, with extensions. But when you click on an existing filename to overwrite it, its full name is put into the save name input, and when user submits it by either clicking on a
Save
button or double clicking on an existing entry, additional.gz
is added to what was in the save name input.To Reproduce
Steps to reproduce the behavior:
test
nameSave
dialog againtest.sav.gz
in the list, click on it twiceLoad
dialog.test.sav.gz
in the savegames list, double click it~/.stratagus/wc2/save
or whatever it is on your platform) - you'll seetest.sav.gz
with an older timestamp andtest.sav.gz.gz
with a newer timestamp. The first file is the one that is displayed in theSave
/Load
dialogs, but the second one is thats actually gets written when you double click on an existing entry in aSave
dialog.Expected behavior
Save
/Load
dialogsScreenshots and Logs
Save dialog after step 6 is performed:
Load dialog after step 6 is performed:
Filesystem after step 6 is performed:
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: