mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-02 23:55:12 +00:00
Recreating scheduled icon if it was changed
This commit is contained in:
@@ -1969,8 +1969,8 @@ void HistoryWidget::refreshScheduledToggle() {
|
|||||||
_scheduled.destroy();
|
_scheduled.destroy();
|
||||||
} else if (canWrite) {
|
} else if (canWrite) {
|
||||||
if (_scheduled) {
|
if (_scheduled) {
|
||||||
_scheduled->setIconOverride(has ? st::historyScheduledToggle : st::historyScheduledToggleEmpty);
|
_scheduled.destroy();
|
||||||
} else {
|
}
|
||||||
_scheduled.create(this, (has ? st::historyScheduledToggle : st::historyScheduledToggleEmpty));
|
_scheduled.create(this, (has ? st::historyScheduledToggle : st::historyScheduledToggleEmpty));
|
||||||
_scheduled->show();
|
_scheduled->show();
|
||||||
_scheduled->addClickHandler([=] {
|
_scheduled->addClickHandler([=] {
|
||||||
@@ -1979,7 +1979,6 @@ void HistoryWidget::refreshScheduledToggle() {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
bool HistoryWidget::contentOverlapped(const QRect &globalRect) {
|
bool HistoryWidget::contentOverlapped(const QRect &globalRect) {
|
||||||
return (_attachDragDocument->overlaps(globalRect)
|
return (_attachDragDocument->overlaps(globalRect)
|
||||||
|
Reference in New Issue
Block a user