mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-02 23:55:12 +00:00
new image / file confirm / send codepath made by Task / TaskQueue, sending single file paste and image paste / drop with that new code
This commit is contained in:
@@ -138,6 +138,18 @@ void BackgroundWidget::replaceInner(LayeredWidget *n) {
|
||||
update();
|
||||
}
|
||||
|
||||
void BackgroundWidget::showLayerLast(LayeredWidget *n) {
|
||||
_hidden.push_front(n);
|
||||
n->setParent(this);
|
||||
connect(n, SIGNAL(closed()), this, SLOT(onInnerClose()));
|
||||
connect(n, SIGNAL(resized()), this, SLOT(update()));
|
||||
connect(n, SIGNAL(destroyed(QObject*)), this, SLOT(boxDestroyed(QObject*)));
|
||||
n->parentResized();
|
||||
n->animStep(1);
|
||||
n->hide();
|
||||
update();
|
||||
}
|
||||
|
||||
bool BackgroundWidget::animStep(float64 ms) {
|
||||
float64 dt = ms / (hiding ? st::layerHideDuration : st::layerSlideDuration);
|
||||
w->animStep(dt);
|
||||
|
Reference in New Issue
Block a user