more drawing tool improvements; no crash drawing tool; restart editors will ask for confirmation

This commit is contained in:
Zeno Rogue committed 2020-04-17 20:34:49 +02:00
1 parent 62c6651392
commit c24658bf38
3 files changed
+35 -27

No files matched your search

+4
View File
@@ -1263,6 +1263,10 @@ EX namespace dialog {
else act();
}
inline void push_confirm_dialog(const reaction_t& act, const string& s) {
pushScreen([act, s] () { confirm_dialog(s, act); });
}
inline reaction_t add_confirmation(const reaction_t& act) {
return [act] { do_if_confirmed(act); };
}