display: show it in title bar when starting up in restricted mode
parent
3a79766da6
commit
55537dc218
|
@ -2070,7 +2070,7 @@ void titlebar(const char *path)
|
||||||
/* Figure out the path, prefix and state strings. */
|
/* Figure out the path, prefix and state strings. */
|
||||||
#ifdef ENABLE_COLOR
|
#ifdef ENABLE_COLOR
|
||||||
if (currmenu == MLINTER) {
|
if (currmenu == MLINTER) {
|
||||||
/* TRANSLATORS: The next four are "labels" in the title bar. */
|
/* TRANSLATORS: The next five are "labels" in the title bar. */
|
||||||
prefix = _("Linting --");
|
prefix = _("Linting --");
|
||||||
path = openfile->filename;
|
path = openfile->filename;
|
||||||
} else
|
} else
|
||||||
|
@ -2101,6 +2101,8 @@ void titlebar(const char *path)
|
||||||
state = _("Modified");
|
state = _("Modified");
|
||||||
else if (ISSET(VIEW_MODE))
|
else if (ISSET(VIEW_MODE))
|
||||||
state = _("View");
|
state = _("View");
|
||||||
|
else if (ISSET(RESTRICTED))
|
||||||
|
state = _("Restricted");
|
||||||
|
|
||||||
pluglen = strlenpt(_("Modified")) + 1;
|
pluglen = strlenpt(_("Modified")) + 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue