Skip to content

Commit 69b1d9a

Browse files
committed
New tilemaps do not create an empty entry in the Recent menu
1 parent d1ed1a3 commit 69b1d9a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main-window.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1767,7 +1767,9 @@ void Main_Window::setup_tilemap(const char *basename, int old_tileset_size, cons
17671767
copy_label(buffer);
17681768

17691769
load_corresponding_tileset(tileset_filename);
1770-
store_recent_tilemap();
1770+
if (!_tilemap_file.empty()) {
1771+
store_recent_tilemap();
1772+
}
17711773
update_tilemap_metadata();
17721774
update_status(NULL);
17731775
update_active_controls();

0 commit comments

Comments
 (0)