I am programing a latex editor. The main window has an editor that is saving files async, and a compiler class that launches compilations (also async). I have actions for saving and compiling (both
Gio.SimpleAction). What is the easiest/canonical way to create an action that combines the two, i.e. first saves and when saving is done, then compiles?
You can trivially chain actions by calling
Gio.Action.activate, but that would only have the effect you want when using synchronous actions that do everything in the signal handler. Actions don’t have the ability to return values asynchronously (or at all), so you will likely have to make separate async functions for save/compile and then call those.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.