diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1b413d5a2..1e1f38640 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -86,6 +86,12 @@ jobs: 7z a chatterino-windows-x86-64.zip Chatterino2/ shell: cmd + - name: Ensure build succeeded (Windows) + if: startsWith(matrix.os, 'windows') + run: | + cd build + ls release/chatterino.exe + - name: Upload artifact (Windows) if: startsWith(matrix.os, 'windows') uses: actions/upload-artifact@v2.2.2 diff --git a/src/widgets/dialogs/UserInfoPopup.cpp b/src/widgets/dialogs/UserInfoPopup.cpp index 2f3f1e301..27dfb5cf6 100644 --- a/src/widgets/dialogs/UserInfoPopup.cpp +++ b/src/widgets/dialogs/UserInfoPopup.cpp @@ -177,17 +177,16 @@ UserInfoPopup::UserInfoPopup(bool closeAutomatically, QWidget *parent) auto menu = new QMenu; previousMenu = menu; - // add context menu actions - menu->addAction( - "Open avatar in browser", - [avatarUrl = this->avatarUrl_] { - QDesktopServices::openUrl(QUrl(avatarUrl)); - }); + auto avatarUrl = this->avatarUrl_; - menu->addAction("Copy avatar link", - [avatarUrl = this->avatarUrl_] { - crossPlatformCopy(avatarUrl); - }); + // add context menu actions + menu->addAction("Open avatar in browser", [avatarUrl] { + QDesktopServices::openUrl(QUrl(avatarUrl)); + }); + + menu->addAction("Copy avatar link", [avatarUrl] { + crossPlatformCopy(avatarUrl); + }); menu->popup(QCursor::pos()); menu->raise();