mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 22:55:11 +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:
@@ -175,11 +175,11 @@ private:
|
||||
|
||||
void itemRemoved(HistoryItem *item);
|
||||
enum class UpdateRowSection {
|
||||
Default = 0x01,
|
||||
Filtered = 0x02,
|
||||
PeerSearch = 0x04,
|
||||
MessageSearch = 0x08,
|
||||
All = 0x0F,
|
||||
Default = (1 << 0),
|
||||
Filtered = (1 << 1),
|
||||
PeerSearch = (1 << 2),
|
||||
MessageSearch = (1 << 3),
|
||||
All = Default | Filtered | PeerSearch | MessageSearch,
|
||||
};
|
||||
using UpdateRowSections = base::flags<UpdateRowSection>;
|
||||
friend inline constexpr auto is_flag_type(UpdateRowSection) { return true; };
|
||||
|
Reference in New Issue
Block a user