Skip to content

Commit 320ef77

Browse files
Adds sign in button to sign in needed panel. (#17)
- Adds Sign In button to "sign in needed" panel.
1 parent ff99e33 commit 320ef77

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

buildspec.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"versionMinor": 0,
4343
"versionPatch": 0,
4444
"buildNumber": 123,
45-
"releaseType": "rc4",
45+
"releaseType": "rc5",
4646
"author": "Elgato",
4747
"website": "https://elgato.com",
4848
"email": "support@elgato.com",

src/elgato-cloud-window.cpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -705,9 +705,22 @@ LoginNeeded::LoginNeeded(QWidget *parent) : QWidget(parent)
705705
loginSub->setWordWrap(true);
706706
loginSub->setAlignment(Qt::AlignCenter);
707707

708+
auto hLayout = new QHBoxLayout();
709+
auto loginButton = new QPushButton(this);
710+
loginButton->setText(obs_module_text("MarketplaceWindow.LoginButton.LogIn"));
711+
loginButton->setHidden(elgatoCloud->loggedIn);
712+
loginButton->setStyleSheet(
713+
"QPushButton {font-size: 12pt; border-radius: 8px; padding: 8px; background-color: #232323; border: none; } "
714+
"QPushButton:hover {background-color: #444444; }");
715+
connect(loginButton, &QPushButton::clicked, this,
716+
[this]() { elgatoCloud->StartLogin(); });
717+
hLayout->addStretch();
718+
hLayout->addWidget(loginButton);
719+
hLayout->addStretch();
708720
layout->addStretch();
709721
layout->addWidget(login);
710722
layout->addWidget(loginSub);
723+
layout->addLayout(hLayout);
711724
layout->addStretch();
712725
}
713726

0 commit comments

Comments
 (0)