Project

General

Profile

Bug #10998

LUA widget "entry" the attribute "types.lua_entry.is_password" true/false swapped

Added by Christian Kanzian about 2 years ago.

Status:
New
Priority:
Low
Category:
Lua
Target version:
-
Start date:
04/21/2016
Due date:
% Done:

0%

Affected Version:
git development version
System:
Debian
bitness:
64-bit
hardware architecture:
amd64/x86

Description

Hi,

I played with the moduleExample.lua from darktable/lua-scripts. If "types.lua_entry.is_password" is set to "false" the entry text is hidden. If set to "true" the entry text is displayed. This seems to be swapped, because the API describes it different and more logical.

taken from moduleExample.lua

local entry = dt.new_widget("entry")
{
    text = "test",               
    placeholder = "placeholder",
    is_password = true,
    editable = true,
    tooltip = "Tooltip Text",
    reset_callback = function(self) self.text = "text" end
}

Christian

Also available in: Atom PDF