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:
@@ -76,8 +76,8 @@ bool _userWorking() {
|
||||
}
|
||||
|
||||
enum class FileOption {
|
||||
User = 0x01,
|
||||
Safe = 0x02,
|
||||
User = (1 << 0),
|
||||
Safe = (1 << 1),
|
||||
};
|
||||
using FileOptions = base::flags<FileOption>;
|
||||
inline constexpr auto is_flag_type(FileOption) { return true; };
|
||||
|
Reference in New Issue
Block a user