mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 09:55:40 +00:00
ui/app: remove two redundant assignments
StagePaused is the zero value now that StateDead is gone. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -243,7 +243,6 @@ func createNativeWindow(opts *WindowOptions) (*window, error) {
|
|||||||
}
|
}
|
||||||
w := &window{
|
w := &window{
|
||||||
hwnd: hwnd,
|
hwnd: hwnd,
|
||||||
stage: StagePaused,
|
|
||||||
}
|
}
|
||||||
winMap[hwnd] = w
|
winMap[hwnd] = w
|
||||||
w.hdc, err = getDC(hwnd)
|
w.hdc, err = getDC(hwnd)
|
||||||
|
|||||||
@@ -83,7 +83,6 @@ func NewWindow(opts *WindowOptions) *Window {
|
|||||||
|
|
||||||
w := &Window{
|
w := &Window{
|
||||||
events: make(chan Event),
|
events: make(chan Event),
|
||||||
stage: StagePaused,
|
|
||||||
}
|
}
|
||||||
if err := createWindow(w, opts); err != nil {
|
if err := createWindow(w, opts); err != nil {
|
||||||
// For simplicity, NewWindow always succeeds. Send
|
// For simplicity, NewWindow always succeeds. Send
|
||||||
|
|||||||
Reference in New Issue
Block a user