mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Fix working with layers.
Regression was introduced in df64c97
.
New base::flags work correctly only if all mutually exclusive flag
values use mutually exclusive bits (a & b == 0 for exclusive (a, b)).
Closes #3856.
This commit is contained in:
@@ -76,10 +76,10 @@ signals:
|
||||
|
||||
protected:
|
||||
enum class StateFlag {
|
||||
None = 0x00,
|
||||
Over = 0x01,
|
||||
Down = 0x02,
|
||||
Disabled = 0x04,
|
||||
None = 0,
|
||||
Over = (1 << 0),
|
||||
Down = (1 << 1),
|
||||
Disabled = (1 << 2),
|
||||
};
|
||||
using State = base::flags<StateFlag>;
|
||||
|
||||
|
Reference in New Issue
Block a user