From 764afbcd1117fc8a83be0ef07c29d3ccb17fa372 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 20 Aug 2022 16:44:41 +0200 Subject: [PATCH] nilrider:: save config --- rogueviz/nilrider/nilrider.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/rogueviz/nilrider/nilrider.cpp b/rogueviz/nilrider/nilrider.cpp index 779fb619..3c76e4a8 100644 --- a/rogueviz/nilrider/nilrider.cpp +++ b/rogueviz/nilrider/nilrider.cpp @@ -377,6 +377,15 @@ void settings() { dialog::add_key_action('r', [] { pushScreen(showSettings); }); + + #if CAP_FILES && !ISWEB + dialog::addItem("save the current config", 's'); + dialog::add_action([] { + dynamicval g(geometry, gNormal); + saveConfig(); + }); + #endif + dialog::addBreak(100); dialog::addBack(); dialog::display();