mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +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:
@@ -570,12 +570,12 @@ enum ForwardWhatMessages {
|
||||
};
|
||||
|
||||
enum ShowLayerOption {
|
||||
CloseOtherLayers = 0x00,
|
||||
KeepOtherLayers = 0x01,
|
||||
ShowAfterOtherLayers = 0x03,
|
||||
CloseOtherLayers = (1 << 0),
|
||||
KeepOtherLayers = (1 << 1),
|
||||
ShowAfterOtherLayers = (1 << 2),
|
||||
|
||||
AnimatedShowLayer = 0x00,
|
||||
ForceFastShowLayer = 0x04,
|
||||
AnimatedShowLayer = (1 << 3),
|
||||
ForceFastShowLayer = (1 << 4),
|
||||
};
|
||||
using ShowLayerOptions = base::flags<ShowLayerOption>;
|
||||
inline constexpr auto is_flag_type(ShowLayerOption) { return true; };
|
||||
|
Reference in New Issue
Block a user