Implemented “List drafts” flag

This commit is contained in:
Stefan Ritt 2016-12-02 13:55:20 +01:00
parent bf25ce7e61
commit 6ec506ba7c
2 changed files with 13 additions and 2 deletions

View File

@ -2798,6 +2798,16 @@ Options Location = Main Building{a}, New Building{b}, Old Building{c}
<b><code>10</code></b> seconds after the last edit. Setting Autosave to
zero disables the autosave functionality.
</li>
<li>
<b><code>List drafts = 0|1</code></b><br>
By default, draft entries are shown in the list display in another browser
when the entries are currently edited. This can be confusing to other users
since the draft entries are frequently updated. To avoid this, this flag can
be se to <b><code>0</code></b>, which hides all draft entries in the list view.
If they are hidden, the only way to come back to them is to hit the
<b><code>New</code></b> menu item, in which case the system presents to the user
a list of open draft messages to be continued.
</li>
</ul>
<p>
<a name="themes" id="themes"></a>

View File

@ -21557,8 +21557,9 @@ void show_elog_list(LOGBOOK * lbs, int past_n, int last_n, int page_n, BOOL defa
break;
/* skip drafts */
if (draft[0])
continue;
if (getcfg(lbs->name, "List drafts", str, sizeof(str)) && atoi(str) == 0)
if (draft[0])
continue;
if (csv) {