show verbose mode (see $FG_ROOT/Docs/README.gui -> property-list)
This commit is contained in:
parent
f3b110e565
commit
7f2f1e39e3
1 changed files with 3 additions and 3 deletions
|
@ -194,7 +194,7 @@ void PropertyList::handle_select(puObject *list_box)
|
||||||
const char *src = prop_list->_entries[selected];
|
const char *src = prop_list->_entries[selected];
|
||||||
|
|
||||||
if (prop_list->_dot_files && (selected < 2)) {
|
if (prop_list->_dot_files && (selected < 2)) {
|
||||||
if (!strcmp(src, ".")) {
|
if (src[0] == '.' && (src[1] == '\0' || src[1] == ' ')) {
|
||||||
if (mod_ctrl)
|
if (mod_ctrl)
|
||||||
prop_list->toggleVerbosity();
|
prop_list->toggleVerbosity();
|
||||||
else if (mod_shift)
|
else if (mod_shift)
|
||||||
|
@ -260,8 +260,8 @@ void PropertyList::update(bool restore_pos)
|
||||||
_num_entries += 2; // for . and ..
|
_num_entries += 2; // for . and ..
|
||||||
_entries = new char*[_num_entries + 1];
|
_entries = new char*[_num_entries + 1];
|
||||||
|
|
||||||
_entries[0] = new char[2];
|
_entries[0] = new char[16];
|
||||||
strcpy(_entries[0], ".");
|
strcpy(_entries[0], _verbose ? ". [verbose]" : ".");
|
||||||
|
|
||||||
_entries[1] = new char[3];
|
_entries[1] = new char[3];
|
||||||
strcpy(_entries[1], "..");
|
strcpy(_entries[1], "..");
|
||||||
|
|
Loading…
Reference in a new issue