mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-05 00:55:12 +00:00
Replace QFlags with base::flags.
This commit is contained in:
@@ -42,8 +42,8 @@ void Controller::enableGifPauseReason(GifPauseReason reason) {
|
||||
|
||||
void Controller::disableGifPauseReason(GifPauseReason reason) {
|
||||
if (_gifPauseReasons & reason) {
|
||||
_gifPauseReasons &= ~qFlags(reason);
|
||||
if (static_cast<int>(_gifPauseReasons) < static_cast<int>(reason)) {
|
||||
_gifPauseReasons &= ~reason;
|
||||
if (_gifPauseReasons < reason) {
|
||||
_gifPauseLevelChanged.notify();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user