From 0697cee8a3bf43adcb655860c1296610e90e26f7 Mon Sep 17 00:00:00 2001 From: 0-don <70039285+0-don@users.noreply.github.com> Date: Tue, 24 Dec 2024 18:49:19 +0100 Subject: [PATCH] remove unsued deps in github action --- .github/workflows/release.yml | 13 ++++++++++++- .../pages/app/clipboard/text-clipboard.tsx | 4 ++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 70b6d8ae..9d5dbd37 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -72,7 +72,18 @@ jobs: if: matrix.platform == 'ubuntu-22.04' run: | sudo apt-get update - sudo apt-get install -y libgtk-3-dev pkg-config libglib2.0-dev libwebkit2gtk-4.1-dev libgtk-3-dev libxdo-dev libayatana-appindicator3-dev librsvg2-dev librsvg2-dev libxcb-shape0-dev libxcb-xfixes0-dev patchelf libxdo3 libxdo-dev libjavascriptcoregtk-4.1-dev libwebkit2gtk-4.1-dev + sudo apt-get install -y \ + libglib2.0-dev \ + libgtk-3-dev \ + libayatana-appindicator3-dev \ + librsvg2-dev \ + libxcb-shape0-dev \ + libxcb-xfixes0-dev \ + patchelf \ + libxdo3 \ + libxdo-dev \ + libjavascriptcoregtk-4.1-dev \ + libwebkit2gtk-4.1-dev - name: install frontend dependencies run: yarn install diff --git a/src/components/pages/app/clipboard/text-clipboard.tsx b/src/components/pages/app/clipboard/text-clipboard.tsx index add15101..7bf4fe5c 100644 --- a/src/components/pages/app/clipboard/text-clipboard.tsx +++ b/src/components/pages/app/clipboard/text-clipboard.tsx @@ -21,6 +21,10 @@ export const TextClipboard: Component = (props) => { let data = props.data.text?.data; let textType = props.data.text?.type as ClipboardTextType; + if (props.data.text?.data && props.data.html?.data) { + type = ClipboardType.Html; + data = props.data.text?.data; + } if (!props.data.text?.data && props.data.html?.data) { type = ClipboardType.Html; data = props.data.html.data;