@@ -102,11 +102,13 @@ DownloadButton::DownloadButton(QWidget *parent) : QWidget(parent)
102
102
_downloadButton->setToolTip (" Click to Download" );
103
103
std::string downloadIconPath = imageBaseDir + " download.svg" ;
104
104
std::string downloadIconHoverPath = imageBaseDir + " download_hover.svg" ;
105
- std::string downloadIconDisabledPath = imageBaseDir + " download_hover.svg" ;
105
+ std::string downloadIconDisabledPath =
106
+ imageBaseDir + " download_hover.svg" ;
106
107
QString buttonStyle = EIconHoverDisabledButtonStyle;
107
108
buttonStyle.replace (" ${img}" , downloadIconPath.c_str ());
108
109
buttonStyle.replace (" ${hover-img}" , downloadIconHoverPath.c_str ());
109
- buttonStyle.replace (" ${disabled-img}" , downloadIconDisabledPath.c_str ());
110
+ buttonStyle.replace (" ${disabled-img}" ,
111
+ downloadIconDisabledPath.c_str ());
110
112
_downloadButton->setFixedSize (24 , 24 );
111
113
_downloadButton->setStyleSheet (buttonStyle);
112
114
_downloadButton->setSizePolicy (QSizePolicy::Fixed, QSizePolicy::Fixed);
@@ -247,7 +249,8 @@ WindowToolBar::WindowToolBar(QWidget *parent) : QWidget(parent)
247
249
std::string settingsIconHoverPath = imageBaseDir + " settings_hover.svg" ;
248
250
QString settingsButtonStyle = EIconHoverButtonStyle;
249
251
settingsButtonStyle.replace (" ${img}" , settingsIconPath.c_str ());
250
- settingsButtonStyle.replace (" ${hover-img}" , settingsIconHoverPath.c_str ());
252
+ settingsButtonStyle.replace (" ${hover-img}" ,
253
+ settingsIconHoverPath.c_str ());
251
254
_settingsButton->setFixedSize (24 , 24 );
252
255
_settingsButton->setMaximumHeight (24 );
253
256
_settingsButton->setStyleSheet (settingsButtonStyle);
@@ -260,7 +263,8 @@ WindowToolBar::WindowToolBar(QWidget *parent) : QWidget(parent)
260
263
_storeButton = new QPushButton (this );
261
264
_storeButton->setToolTip (" Go to Elgato Marketplace" );
262
265
std::string storeIconPath = imageBaseDir + " marketplace-logo.svg" ;
263
- std::string storeIconHoverPath = imageBaseDir + " marketplace-logo_hover.svg" ;
266
+ std::string storeIconHoverPath =
267
+ imageBaseDir + " marketplace-logo_hover.svg" ;
264
268
QString buttonStyle = EIconHoverButtonStyle;
265
269
buttonStyle.replace (" ${img}" , storeIconPath.c_str ());
266
270
buttonStyle.replace (" ${hover-img}" , storeIconHoverPath.c_str ());
@@ -492,7 +496,6 @@ void ElgatoCloudWindow::initialize()
492
496
493
497
auto loadingWidget = new LoadingWidget (this ); // Loading widget, id: 3
494
498
_stackedContent->addWidget (loadingWidget);
495
-
496
499
// _config = new ElgatoCloudConfig(this);
497
500
// _config->setVisible(false);
498
501
connect (_config, &ElgatoCloudConfig::closeClicked, this , [this ]() {
@@ -509,6 +512,11 @@ void ElgatoCloudWindow::initialize()
509
512
setLayout (_layout);
510
513
}
511
514
515
+ void ElgatoCloudWindow::setLoading ()
516
+ {
517
+ _stackedContent->setCurrentIndex (3 );
518
+ }
519
+
512
520
void ElgatoCloudWindow::on_logInButton_clicked ()
513
521
{
514
522
elgatoCloud->StartLogin ();
@@ -536,6 +544,7 @@ void ElgatoCloudWindow::setLoggedIn()
536
544
void ElgatoCloudWindow::setupOwnedProducts ()
537
545
{
538
546
_ownedProducts->refreshProducts ();
547
+ _stackedContent->setCurrentIndex (0 );
539
548
}
540
549
541
550
ElgatoProductItem::ElgatoProductItem (QWidget *parent, ElgatoProduct *product)
@@ -743,7 +752,7 @@ LoadingWidget::LoadingWidget(QWidget *parent) : QWidget(parent)
743
752
QSizePolicy::Expanding);
744
753
745
754
auto loading = new QLabel (this );
746
- loading->setText (" Loading all of the things " );
755
+ loading->setText (" Loading Your Purchased Products... " );
747
756
loading->setStyleSheet (" QLabel {font-size: 18pt;}" );
748
757
loading->setAlignment (Qt::AlignCenter);
749
758
@@ -772,6 +781,9 @@ void OpenElgatoCloudWindow()
772
781
773
782
ElgatoCloudWindow::window = new ElgatoCloudWindow (mainWindow);
774
783
ElgatoCloudWindow::window->setAttribute (Qt::WA_DeleteOnClose);
784
+ if (elgatoCloud->loggedIn ) {
785
+ ElgatoCloudWindow::window->setLoading ();
786
+ }
775
787
ElgatoCloudWindow::window->show ();
776
788
ElgatoCloudWindow::window->move (
777
789
hostRect.center () -
@@ -793,7 +805,7 @@ void CloseElgatoCloudWindow()
793
805
794
806
extern void InitElgatoCloud (obs_module_t *module )
795
807
{
796
- obs_log (LOG_INFO, " version: %s" , " 0.0.1 " );
808
+ obs_log (LOG_INFO, " version: %s" , " 0.0.2 " );
797
809
798
810
elgatoCloud = new ElgatoCloud (module );
799
811
QAction *action = (QAction *)obs_frontend_add_tools_menu_qaction (
0 commit comments