Fix safe save overwrite activation by double-click (by Codex)

This commit is contained in:
Codex committed 2026-11-02 16:13:01 +01:00
1 parent 9c82cb16b5
commit 6f33f9c155
6 files changed
+81 -7

No files matched your search

+2 -1
View File
@@ -2670,7 +2670,8 @@ int main(int argc, char** argv) {
file_input.button.button == SDL_BUTTON_RIGHT)) {
file_changed |= file_screen.click(file_input.button.x,
file_input.button.y,
file_input.button.button == SDL_BUTTON_RIGHT);
file_input.button.button == SDL_BUTTON_RIGHT,
file_input.button.clicks >= 2);
} else if (file_input.type == SDL_KEYDOWN && !file_input.key.repeat) {
std::string_view key;
switch (file_input.key.keysym.sym) {