mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-02 05:11:29 +08:00
chore: fix some comments (#3932)
Signed-off-by: lvyaoting <lvyaoting@outlook.com>
This commit is contained in:
parent
6345b64a22
commit
dd4aa56310
@ -62,7 +62,7 @@ func HandleSecondInstanceData(secondInstanceMessage *C.char) {
|
||||
}
|
||||
}
|
||||
|
||||
// CreateLockFile tries to create a file with given name and acquire an
|
||||
// createLockFile tries to create a file with given name and acquire an
|
||||
// exclusive lock on it. If the file already exists AND is still locked, it will
|
||||
// fail.
|
||||
func createLockFile(filename string) (*os.File, error) {
|
||||
|
@ -65,7 +65,7 @@ type ControlBase struct {
|
||||
dispatchq []func()
|
||||
}
|
||||
|
||||
// initControl is called by controls: edit, button, treeview, listview, and so on.
|
||||
// InitControl is called by controls: edit, button, treeview, listview, and so on.
|
||||
func (cba *ControlBase) InitControl(className string, parent Controller, exstyle, style uint) {
|
||||
cba.hwnd = CreateWindow(className, parent, exstyle, style)
|
||||
if cba.hwnd == 0 {
|
||||
|
@ -23,7 +23,7 @@ type ProcessedMenuItem struct {
|
||||
Hidden bool `json:",omitempty"`
|
||||
// Checked indicates if the item is selected (used by Checkbox and Radio types only)
|
||||
Checked bool `json:",omitempty"`
|
||||
// Submenu contains a list of menu items that will be shown as a submenu
|
||||
// SubMenu contains a list of menu items that will be shown as a submenu
|
||||
// SubMenu []*MenuItem `json:"SubMenu,omitempty"`
|
||||
SubMenu *ProcessedMenu `json:",omitempty"`
|
||||
/*
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
)
|
||||
|
||||
// Parse parses the given tags string and returns
|
||||
// a cleaned slice of strings. Both comma and space delimeted
|
||||
// a cleaned slice of strings. Both comma and space delimited
|
||||
// tags are supported but not mixed. If mixed, an error is returned.
|
||||
func Parse(tags string) ([]string, error) {
|
||||
if tags == "" {
|
||||
|
@ -22,7 +22,7 @@ type MenuItem struct {
|
||||
Hidden bool
|
||||
// Checked indicates if the item is selected (used by Checkbox and Radio types only)
|
||||
Checked bool
|
||||
// Submenu contains a list of menu items that will be shown as a submenu
|
||||
// SubMenu contains a list of menu items that will be shown as a submenu
|
||||
// SubMenu []*MenuItem `json:"SubMenu,omitempty"`
|
||||
SubMenu *Menu
|
||||
|
||||
|
@ -26,6 +26,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
- Fixed example for macOS menu by @takuyahara in [PR](https://github.com/wailsapp/wails/pull/3847)
|
||||
- Fixed typo by @takuyahara in [PR](https://github.com/wailsapp/wails/pull/3846)
|
||||
- Fixed incorrect TS definition of `WindowSetSize` by @leaanthony
|
||||
- chore: fix some comments in [PR](https://github.com/wailsapp/wails/pull/3932) by @lvyaoting
|
||||
|
||||
|
||||
### Changed
|
||||
- Allow to specify macos-min-version externally. Implemented by @APshenkin in [PR](https://github.com/wailsapp/wails/pull/3756)
|
||||
|
Loading…
Reference in New Issue
Block a user