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

chore: fix some comments (#3932)

Signed-off-by: lvyaoting <lvyaoting@outlook.com>
This commit is contained in:
lvyaoting 2024-12-06 11:35:46 +08:00 committed by GitHub
parent 6345b64a22
commit dd4aa56310
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 7 additions and 5 deletions

View File

@ -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 // exclusive lock on it. If the file already exists AND is still locked, it will
// fail. // fail.
func createLockFile(filename string) (*os.File, error) { func createLockFile(filename string) (*os.File, error) {

View File

@ -65,7 +65,7 @@ type ControlBase struct {
dispatchq []func() 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) { func (cba *ControlBase) InitControl(className string, parent Controller, exstyle, style uint) {
cba.hwnd = CreateWindow(className, parent, exstyle, style) cba.hwnd = CreateWindow(className, parent, exstyle, style)
if cba.hwnd == 0 { if cba.hwnd == 0 {

View File

@ -23,7 +23,7 @@ type ProcessedMenuItem struct {
Hidden bool `json:",omitempty"` Hidden bool `json:",omitempty"`
// Checked indicates if the item is selected (used by Checkbox and Radio types only) // Checked indicates if the item is selected (used by Checkbox and Radio types only)
Checked bool `json:",omitempty"` 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 []*MenuItem `json:"SubMenu,omitempty"`
SubMenu *ProcessedMenu `json:",omitempty"` SubMenu *ProcessedMenu `json:",omitempty"`
/* /*

View File

@ -8,7 +8,7 @@ import (
) )
// Parse parses the given tags string and returns // 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. // tags are supported but not mixed. If mixed, an error is returned.
func Parse(tags string) ([]string, error) { func Parse(tags string) ([]string, error) {
if tags == "" { if tags == "" {

View File

@ -22,7 +22,7 @@ type MenuItem struct {
Hidden bool Hidden bool
// Checked indicates if the item is selected (used by Checkbox and Radio types only) // Checked indicates if the item is selected (used by Checkbox and Radio types only)
Checked bool 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 []*MenuItem `json:"SubMenu,omitempty"`
SubMenu *Menu SubMenu *Menu

View File

@ -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 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 typo by @takuyahara in [PR](https://github.com/wailsapp/wails/pull/3846)
- Fixed incorrect TS definition of `WindowSetSize` by @leaanthony - Fixed incorrect TS definition of `WindowSetSize` by @leaanthony
- chore: fix some comments in [PR](https://github.com/wailsapp/wails/pull/3932) by @lvyaoting
### Changed ### Changed
- Allow to specify macos-min-version externally. Implemented by @APshenkin in [PR](https://github.com/wailsapp/wails/pull/3756) - Allow to specify macos-min-version externally. Implemented by @APshenkin in [PR](https://github.com/wailsapp/wails/pull/3756)