| 646 | } |
| 647 | |
| 648 | void MainWindowController::showUpdateWidget() |
| 649 | { |
| 650 | // Do not show update widget if in login screen or other window, since the |
| 651 | // widget will overlay incorrectly. |
| 652 | if (curWindow_ != WINDOW_ID_CONNECT) { |
| 653 | return; |
| 654 | } |
| 655 | if (!updateAppItem_->isVisible()) { |
| 656 | updateAppItem_->show(); |
| 657 | QPixmap shadow = updateAppItem_->getCurrentPixmapShape(); |
| 658 | shadowManager_->addPixmap(shadow, 0, 0, ShadowManager::SHAPE_ID_UPDATE_WIDGET, true); |
| 659 | invalidateShadow_mac(); |
| 660 | onAppSkinChanged(preferences_->appSkin()); |
| 661 | startAnAnimation(updateWidgetAnimation_, updateWidgetAnimationProgress_, 1.0, ANIMATION_SPEED_FAST); |
| 662 | } |
| 663 | } |
| 664 | |
| 665 | void MainWindowController::hideUpdateWidget() |
| 666 | { |
no test coverage detected