From 0eff004dcb63870251c715460430ea2dc964d718 Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Tue, 1 Feb 2022 22:26:47 +0100 Subject: Immediately edit description after checkin --- main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main.cpp b/main.cpp index 5432ea2..e0b78e0 100644 --- a/main.cpp +++ b/main.cpp @@ -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}, []() { -- cgit v1.2.3-70-g09d2