Files @ r28810:dd35d3d734ac
Branch filter:

Location: cpp/openttd-patchpack/source/.github/workflows/preview.yml

Peter Nelson
Fix d3c673e: Don't defer OnResize() after ReInit() (#12174)

Some windows resize themselves during painting and issue ReInit(). In this case deferred OnResize() causes a visible glitch as the event is handled on the next redraw.
name: Preview

on:
  pull_request_target:
    types:
    - labeled
    - synchronize
    branches:
    - master

concurrency:
  group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
  cancel-in-progress: true

jobs:
  preview:
    if: ${{ (github.event.action == 'labeled' && github.event.label.name == 'preview') || (github.event.action != 'labeled' && contains(github.event.pull_request.labels.*.name, 'preview')) }}
    name: Preview
    uses: ./.github/workflows/preview-build.yml
    secrets: inherit