1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-12-20 23:30:05 +02:00

Show overlay window while editing note

This commit is contained in:
Laurent Cozic
2017-10-24 20:52:26 +01:00
parent 13b4f3f4ea
commit 47da5f24e9
3 changed files with 29 additions and 1 deletions

View File

@@ -74,8 +74,9 @@ class Command extends BaseCommand {
this.logger().info('Disabling fullscreen...');
this.stdout(_('Starting to edit note. Close the editor to get back to the prompt.'));
//this.stdout(_('Starting to edit note. Close the editor to get back to the prompt.'));
app().gui().showModalOverlay(_('Starting to edit note. Close the editor to get back to the prompt.'));
app().gui().forceRender();
const termState = app().gui().term().saveState();
@@ -83,6 +84,7 @@ class Command extends BaseCommand {
spawnSync(editorPath, editorArgs, { stdio: 'inherit' });
app().gui().term().restoreState(termState);
app().gui().hideModalOverlay();
app().gui().forceRender();
// -------------------------------------------------------------------------