Fix windows build not compiling (#2523)

This commit is contained in:
pajlada 2021-03-14 17:25:32 +01:00 committed by GitHub
parent 771bf260c5
commit fd3efe0e15
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 10 deletions

View file

@ -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

View file

@ -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();