MCPcopy Create free account
hub / github.com/Windscribe/Desktop-App / showUpdateWidget

Method showUpdateWidget

src/client/frontend/gui/mainwindowcontroller.cpp:648–663  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

646}
647
648void 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
665void MainWindowController::hideUpdateWidget()
666{

Callers 3

handleKeyPressEventMethod · 0.80

Calls 5

startAnAnimationFunction · 0.85
addPixmapMethod · 0.80
appSkinMethod · 0.80
showMethod · 0.45
getCurrentPixmapShapeMethod · 0.45

Tested by

no test coverage detected