Skip to content

Commit

Permalink
fix: 暂停图标在最小化时仍显示
Browse files Browse the repository at this point in the history
非组合模式下暂停图标设置了Tool标志,
调整为最小化时不触发动画,播放过程的
动画也隐藏。

Log: 修复暂停图标在最小化时仍显示的问题
Bug: https://pms.uniontech.com/bug-view-247791.html
  • Loading branch information
rb-union authored and deepin-bot[bot] committed Mar 29, 2024
1 parent 2b28a54 commit 20e5f86
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/common/platform/platform_mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1186,6 +1186,7 @@ void Platform_MainWindow::onWindowStateChanged()
if (m_pPlaylist->state() == Platform_PlaylistWidget::Opened) {
m_pPlaylist->togglePopup(false);
}
m_pAnimationlable->hide();
}
if (isMaximized()) {
m_pAnimationlable->move(QPoint(QApplication::desktop()->availableGeometry().width() / 2 - 100
Expand Down Expand Up @@ -1276,7 +1277,7 @@ void Platform_MainWindow::onApplicationStateChanged(Qt::ApplicationState e)

void Platform_MainWindow::animatePlayState()
{
if (m_bMiniMode) {
if (m_bMiniMode || isMinimized()) {
return;
}

Expand Down

0 comments on commit 20e5f86

Please sign in to comment.