5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-19 02:19:31 +08:00

[v3] Add Restore to JS runtime

This commit is contained in:
Lea Anthony 2023-06-12 10:44:05 +10:00
parent 2b2defb7c0
commit 1600bcb1d0
No known key found for this signature in database
GPG Key ID: 33DAF7BB90A58405
8 changed files with 26 additions and 6 deletions

View File

@ -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

View File

@ -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)