mirror of https://github.com/procxx/kepka.git
Remove glitch with video messages floating player.
This commit is contained in:
parent
9d81ea59dd
commit
96a2af842f
|
@ -271,7 +271,7 @@ void MainWidget::checkCurrentFloatPlayer() {
|
|||
}
|
||||
|
||||
void MainWidget::toggleFloatPlayer(gsl::not_null<Float*> instance) {
|
||||
auto visible = !instance->hiddenByHistory && !instance->hiddenByWidget && !instance->widget->detached();
|
||||
auto visible = !instance->hiddenByHistory && !instance->hiddenByWidget && instance->widget->isReady();
|
||||
if (instance->visible != visible) {
|
||||
instance->widget->resetMouseState();
|
||||
instance->visible = visible;
|
||||
|
|
|
@ -43,6 +43,9 @@ public:
|
|||
float64 countOpacityByParent() const {
|
||||
return outRatio();
|
||||
}
|
||||
bool isReady() const {
|
||||
return (getReader() != nullptr);
|
||||
}
|
||||
void detach();
|
||||
bool detached() const {
|
||||
return !_item;
|
||||
|
|
Loading…
Reference in New Issue