File tree Expand file tree Collapse file tree 2 files changed +2
-12
lines changed Expand file tree Collapse file tree 2 files changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -167,6 +167,8 @@ func (a *Application) Run() error {
167
167
a .window .SetIcon (images )
168
168
}
169
169
170
+ a .window .SetTitle (ProjectName )
171
+
170
172
if a .config .windowDimensionLimits .minWidth != 0 {
171
173
a .window .SetSizeLimits (
172
174
a .config .windowDimensionLimits .minWidth ,
Original file line number Diff line number Diff line change @@ -97,18 +97,6 @@ func (p *platformPlugin) handleClipboardGetData(arguments interface{}) (reply in
97
97
}
98
98
99
99
func (p * platformPlugin ) handleWindowSetTitle (arguments interface {}) (reply interface {}, err error ) {
100
- appSwitcherDescription := struct {
101
- Label string `json:"label"`
102
- PrimaryColor int64 `json:"primaryColor"`
103
- }{}
104
- err = json .Unmarshal (arguments .(json.RawMessage ), & appSwitcherDescription )
105
- if err != nil {
106
- return nil , errors .Wrap (err , "failed to decode arguments" )
107
- }
108
- p .glfwTasker .Do (func () {
109
- p .window .SetTitle (appSwitcherDescription .Label )
110
- })
111
-
112
100
// triggers flutter framework initialized callbacks
113
101
for _ , f := range p .flutterInitialized {
114
102
f ()
You can’t perform that action at this time.
0 commit comments