Skip to content

Commit

Permalink
Skip mobile default for isActive()
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicletz committed Feb 14, 2025
1 parent b91aa11 commit 4d5768d
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions lib/desktop/window.ex
Original file line number Diff line number Diff line change
Expand Up @@ -621,15 +621,7 @@ defmodule Desktop.Window do

@doc false
def handle_call(:is_active?, _from, ui = %Window{frame: frame}) do
ret =
if frame do
:wxTopLevelWindow.isActive(frame)
else
# true on mobile platforms
true
end

{:reply, ret, ui}
{:reply, :wxTopLevelWindow.isActive(frame), ui}
end

def handle_call(:url, _from, ui) do
Expand Down

0 comments on commit 4d5768d

Please sign in to comment.