mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-18 18:09:30 +08:00
[v3] Add Restore
to JS runtime
This commit is contained in:
parent
2b2defb7c0
commit
1600bcb1d0
@ -145,6 +145,11 @@ export function newWindow(windowName) {
|
||||
*/
|
||||
UnMinimise: () => void call('UnMinimise'),
|
||||
|
||||
/**
|
||||
* Restore the window
|
||||
*/
|
||||
Restore: () => void call('Restore'),
|
||||
|
||||
/**
|
||||
* Set the background colour of the window.
|
||||
* @param {number} r - A value between 0 and 255
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -57,6 +57,9 @@ func (m *MessageProcessor) processWindowMethod(method string, rw http.ResponseWr
|
||||
case "UnMaximise":
|
||||
window.UnMaximise()
|
||||
m.ok(rw)
|
||||
case "Restore":
|
||||
window.Restore()
|
||||
m.ok(rw)
|
||||
case "Show":
|
||||
window.Show()
|
||||
m.ok(rw)
|
||||
|
Loading…
Reference in New Issue
Block a user