diff options
author | Tom Smeding <tom@tomsmeding.com> | 2022-02-01 22:26:47 +0100 |
---|---|---|
committer | Tom Smeding <tom@tomsmeding.com> | 2022-02-01 22:26:47 +0100 |
commit | 0eff004dcb63870251c715460430ea2dc964d718 (patch) | |
tree | 883671b1cdb63223a361b78b6934e2f267a30134 | |
parent | e138113b1feb97200db61d3e26d4a550b6495078 (diff) |
Immediately edit description after checkin
-rw-r--r-- | main.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -80,6 +80,9 @@ int main(int argc, char **argv) { } got::checkIn(*choice); gui::showNotification("Checked in to sheet '" + *choice + "'"); + if (auto descr = gui::promptText("Set text for this '" + *choice + "' entry:")) { + got::editRunning(*descr); + } } }); @@ -97,6 +100,9 @@ int main(int argc, char **argv) { if (got::getRunning()) got::checkOut(); got::checkIn("misc"); gui::showNotification("Switched to 'misc'"); + if (auto descr = gui::promptText("Set text for this 'misc' entry:")) { + got::editRunning(*descr); + } }); matcher.addSequence({Config::TRIGGER_KEY_X}, []() { |