From a30d43753ff6bd7ed1536f8d8e40781ea1f09eec Mon Sep 17 00:00:00 2001 From: Anatolii Hrynchuk Date: Sat, 14 Nov 2026 15:14:16 +0200 Subject: [PATCH] fix(settings): preserve unset files shortcut in options --- src/ui.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ui.cpp b/src/ui.cpp index 62a626c..dd748cd 100644 --- a/src/ui.cpp +++ b/src/ui.cpp @@ -1514,7 +1514,9 @@ Settings collectSettings(HWND w, SettingsView *v) s.undo = value(w, 213); s.clipboard = value(w, 214); s.screenshot = value(w, 215); - s.filesHotkey = value(w, 216); + auto filesHotkey = value(w, 216); + if (s.filesHotkey || !filesHotkey.empty()) + s.filesHotkey = std::move(filesHotkey); s.maxItems = integer(w, 240); s.maxMiB = integer(w, 241); s.maxImageMiB = integer(w, 242);