diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 8daaa9bd082..6a75daf253d 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -157,6 +157,8 @@ jobs: if [ -f "${{ runner.workspace }}/results/javascript.sarif.gpg" ]; then echo "codeql_status=done" >> $GITHUB_STATE echo "codeql_status=done" >> $GITHUB_OUTPUT + echo "pull_request_number=${{ github.event.pull_request.number }}" >> $GITHUB_STATE + echo "pull_request_number=${{ github.event.pull_request.number }}" >> $GITHUB_OUTPUT else echo "codeql_status=pending" >> $GITHUB_STATE echo "codeql_status=pending" >> $GITHUB_OUTPUT @@ -166,5 +168,5 @@ jobs: if: ${{ steps.check-status.outputs.codeql_status == 'done' && github.event_name == 'pull_request' }} uses: NejcZdovc/comment-pr@v2 with: - message: "CodeQL analysis is complete for PR `${{ github.event.issue.number }}`" + message: "CodeQL analysis is complete for PR #${{ steps.check-status.outputs.pull_request_number }}" github_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/app/components/chat.tsx b/app/components/chat.tsx index cea2cc5c1f2..ab6c7c7bf86 100644 --- a/app/components/chat.tsx +++ b/app/components/chat.tsx @@ -697,8 +697,13 @@ export function EditMessageModal(props: { onClose: () => void }) { function usePinApp() { const [pinApp, setPinApp] = useState(false); + const isApp = getClientConfig()?.isApp; // hide tauri console warning in browser const togglePinApp = async () => { + if (!isApp) { + return; + } + if (pinApp) { await appWindow.setAlwaysOnTop(false); sendDesktopNotification(Locale.Chat.Actions.PinAppContent.UnPinned); @@ -712,8 +717,8 @@ function usePinApp() { }; return { - pinApp, - togglePinApp, + pinApp: isApp ? pinApp : false, + togglePinApp: isApp ? togglePinApp : () => {}, }; }