diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 56a4b4e..dd627ff 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,16 +6,16 @@ jobs: name: "Compile & Lint" runs-on: "ubuntu-latest" steps: + - uses: actions/checkout@v1 - name: Setup elixir uses: erlef/setup-beam@v1 with: - otp-version: 24.3.3 - elixir-version: 1.16.3 + version-file: ".tool-versions" + version-type: strict - - uses: actions/checkout@v1 - run: mix deps.get - - uses: actions/cache@v2 + - uses: actions/cache@v3 id: mix-cache with: path: | diff --git a/.tool-versions b/.tool-versions index 90399a1..1c7ba9e 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1,2 +1,2 @@ -erlang 24.3.3 24.3.4.14 24.3.4.17 system -elixir 1.16.3-otp-24 +erlang 26.2.5.5 system +elixir 1.19.1-otp-26 diff --git a/lib/desktop/window.ex b/lib/desktop/window.ex index 2b5e20c..6edfacf 100644 --- a/lib/desktop/window.ex +++ b/lib/desktop/window.ex @@ -601,7 +601,7 @@ defmodule Desktop.Window do {:noreply, ui} end - def handle_cast(:rebuild_webview, ui) do + def handle_cast(:rebuild_webview, ui = %Window{}) do {:noreply, %Window{ui | webview: Fallback.webview_rebuild(ui)}} end diff --git a/lib/desktop/wx.ex b/lib/desktop/wx.ex index db6fbf0..36079e9 100644 --- a/lib/desktop/wx.ex +++ b/lib/desktop/wx.ex @@ -1,4 +1,3 @@ -# TODO: less stringy metaprogramming defmodule Desktop.Wx do @moduledoc """ Elixir version of the constants found in the wx.hrl file, reduced to what is needed in this sample only.