Skip to content

Commit

Permalink
Properly set stream reset position in old scene
Browse files Browse the repository at this point in the history
It used the wrong scene bounds, leading to the notice to end up in the
middle of the canvas.
  • Loading branch information
askmeaboutlo0m committed Aug 31, 2024
1 parent 7059950 commit 27d592b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/desktop/scene/canvasscene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -782,8 +782,8 @@ void CanvasScene::setStreamResetNoticePosition()
qreal catchupOffset =
m_catchup ? m_catchup->boundingRect().height() + NOTICE_OFFSET : 0.0;
QRectF streamResetNoticeBounds = m_streamResetNotice->boundingRect();
m_streamResetNotice->updatePosition(
sceneRect().bottomRight() -
m_streamResetNotice->setPos(
m_sceneBounds.bottomRight() -
QPointF(
streamResetNoticeBounds.width() + NOTICE_OFFSET,
streamResetNoticeBounds.height() + NOTICE_OFFSET + catchupOffset));
Expand Down

0 comments on commit 27d592b

Please sign in to comment.