From 5e6f6ce8d6d6c8d47e6dd8942f65df6525538efe Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Tue, 2 Apr 2019 15:56:46 +0200 Subject: [PATCH] docs: remote saving update --- resources/docs/docs/editing-sessions.md | 19 ++++++++++--------- resources/docs/docs/getting-started.md | 1 + src/client/app/managers/session.js | 1 + 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/resources/docs/docs/editing-sessions.md b/resources/docs/docs/editing-sessions.md index 352e6f8d..2e0e0d31 100644 --- a/resources/docs/docs/editing-sessions.md +++ b/resources/docs/docs/editing-sessions.md @@ -22,22 +22,23 @@ Right clicking / long touch on a widget or on a tab will also display a context - `Add tab`: create a new tab in selected container - `Delete`: delete selected tab or widget -## Save +## Open / Save -When working on a sessions that has been loaded from the server's filesystem, it is possible to save it remotely. When doing so, all the other clients working on the same session will be reloaded automatically. +By default, sessions are saved and opened on the server's filesystem. When saving a session opened by mutliple clients, these will reload the session file automatically. -It is possible to limit this feature to specific client addresses by using the server's `--remote-saving` option. For example: -`open-stage-control --remote-saving 127.0.0.1|192.168.0.10` +!!! note + It is possible to limit this feature to specific client addresses by using the server's `--remote-saving` option. For example: + `open-stage-control --remote-saving 127.0.0.1|192.168.0.10` -Will disable remote saving except for the clients with ip addresses `127.0.0.1` (the server's local address) and `192.168.0.10`. + Will disable remote saving except for the clients with ip addresses `127.0.0.1` (the server's local address) and `192.168.0.10`. -## Save As -Session can be exported as a `.json` file on the client's filesystem. -## Load +## Import / Export -Loading a session file doesn't affect other clients. +Sessions can be exported/imported on the device's filesystem, doing so has a few limitations: +- the session's name won't appear in the window's title +- the session won't be added to the session history ## Grid diff --git a/resources/docs/docs/getting-started.md b/resources/docs/docs/getting-started.md index e874a277..52c1c118 100644 --- a/resources/docs/docs/getting-started.md +++ b/resources/docs/docs/getting-started.md @@ -52,6 +52,7 @@ Command-line only : |---||---| | `-h` | `--help` | print available options | | `-v` | `--version` | print version number | +| | `--inspect` | enable node/electron inspector (visit chrome://inspect with chromium to access DevTools) | **Examples** diff --git a/src/client/app/managers/session.js b/src/client/app/managers/session.js index 697baa43..9a465474 100644 --- a/src/client/app/managers/session.js +++ b/src/client/app/managers/session.js @@ -219,6 +219,7 @@ var SessionManager = class SessionManager { } if (editor.unsavedSession && !confirm(locales('session_unsaved'))) return if (session) sessionManager.load(session) + ipc.trigger('setTitle', 'imported') }, ()=>{ new Popup({title: locales('error'), content: locales('session_uploaderror'), icon: 'exclamation-triangle', closable:true}) })