Skip to content

Commit

Permalink
Disallow passing nothing for hint.
Browse files Browse the repository at this point in the history
  • Loading branch information
sunoru authored Dec 8, 2022
1 parent 37235f0 commit e681912
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "Webviews"
uuid = "b7e775b7-052a-4229-9250-fe08ae90f9c6"
authors = ["Sunoru <[email protected]>"]
version = "1.0.0"
version = "1.0.1"

[deps]
Downloads = "f43a241f-c20a-4ad4-852c-f6b1247861c6"
Expand Down
2 changes: 1 addition & 1 deletion docs/src/lib.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ destroy
dispatch
window_handle
title!
resize!(::Webview)
resize!(::Webview, ::Tuple{Integer, Integer}; hint::WindowSizeHint)
navigate!
html!
init!
Expand Down
2 changes: 1 addition & 1 deletion src/API.jl
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ Sets the native window size.
function Base.resize!(
w::AbstractWebview,
size::Tuple{Integer,Integer};
hint::Union{WindowSizeHint,Nothing}=WEBVIEW_HINT_NONE
hint::WindowSizeHint=WEBVIEW_HINT_NONE
)
resize!(w.platform, size, hint=hint)
w
Expand Down

2 comments on commit e681912

@sunoru
Copy link
Owner Author

@sunoru sunoru commented on e681912 Dec 8, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/73696

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v1.0.1 -m "<description of version>" e681912db1bbe20a92fcf1c6cc69f5c2c3680495
git push origin v1.0.1

Please sign in to comment.