mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Fix windows build not compiling (#2523)
This commit is contained in:
parent
771bf260c5
commit
fd3efe0e15
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue