mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 06:05:58 -06:00
CtrlLib: EditField::Error now does refresh only if status changes
git-svn-id: svn://ultimatepp.org/upp/trunk@7910 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
4c45f667d0
commit
fff310d330
1 changed files with 1 additions and 1 deletions
|
|
@ -221,7 +221,7 @@ public:
|
|||
void Clear();
|
||||
void Reset();
|
||||
|
||||
void Error(bool error = true) { errorbg = error; Refresh(); }
|
||||
void Error(bool error = true) { if(errorbg != error) { errorbg = error; Refresh(); } }
|
||||
|
||||
EditField& Password(bool pwd = true) { password = pwd; Finish(); return *this; }
|
||||
bool IsPassword() const { return password; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue