Changes in behavior
No breaking changes to the Go API. A few changes apps and builds may notice:
- A launch waits for an instance that is shutting down. With
RequestSingleInstanceLock, the running instance now holds the lock until its process exits, so aRelaunch, an update's relaunch or a quick reopen waits for the old process to finish instead of running beside it. Two launches a few milliseconds apart no longer both run. (#1909, reported by @lizhongyue248 in #1906, with @yudongyouqing) - Notarized builds submit twice. With
macos.notarize,mygo buildnotarizes and staples the app before it goes into the disk image, then the image as before, which adds a few minutes. The app users drag to/Applicationsnow passes Gatekeeper offline. (#1898, @PythonShe)
Highlights
- Every finger on a touchscreen.
Element.Touches()returns each finger that is down on an element, with an ID that lasts from landing to lifting, where it landed, its phase and its pressure, so a whiteboard on a large touchscreen can recognize its own gestures, such as a four-finger swipe to turn the page or a five-finger tap to clear it.Touch.WidthandHeightgive the size of each contact, so the same whiteboard can erase with a palm and draw with a finger. Works on Windows and in browsers; Linux reports fingers but no contact size. TheTestergetsTouchDown,TouchMove,TouchUpandTouchCancel. Apps that never callTouchesdon't link any of it. (#1884, #1907, requested by @chenxiao1990 in #1879) - Menus that stay open, with colored badges, on macOS.
MenuItem.KeepOpenkeeps a menu open when one of its items is chosen, so a menu bar proxy app can let the user try nodes one after another, or start a latency test, without the submenu closing each time.BadgeShape,BadgeColorandBadgeTextColordraw a badge on a square, rounded or pill background, so latencies can be colored by how good they are, and the setters update them in place. Other platforms show the items and badges as before. (#741, #1913, @Sakurasan) - Cancel a call from the page. A bound Go method can be called with an
AbortSignal, asfetchis:await Notes.add.with({ signal })("Groceries"). Aborting rejects the promise right away and cancels the method'scontext.Context, so a search the user typed past or a long command they stopped ends in Go too.AbortSignal.timeoutworks as a time limit, and existing calls are unchanged. (#1781, @joei4cm, requested by @echoVic in #1759)
New
Native UI
ListState.MoveAnimationmakes rows glide to their places when rows above or around them come, go or move, such as a deleted item or a commit list rewritten by a reset, instead of jumping there in one frame. It respects reduced motion. (#1904, @PythonShe)Element.PopoverMenutakesPopoverMenuOptionswithPanelandItem, asPopoverMenuButtondoes, so right-click menus can open with the same panel style and animation as the app's ⋯ menus. (#1889, requested by @tsugumi42 in #1885)- A translucent web view over a transparent window fades with its element, such as a peek flyout's page fading in over a window left live behind it. (#1793, @joei4cm, requested by @ourongxing in #1026)
The app
NowPlayingInfo.Artistsnames each artist of a track. On Linux, media controls list them one by one; macOS, Windows and browsers show them joined. On Linux, the media controls can also bring the player's window to the front. (#1924, requested by @Shizuku11451 in #1923)- On macOS,
TrayOptions.MonospacedTitlekeeps a tray title of a fixed number of characters at one width, so a network speed such as↓999M ↑999Mdoesn't shift the icons beside it as its units change. (#1882, @pseudoyu)
Fixes
Windows
- An app whose process an input method kept alive at exit, such as with Doubao IME, now exits, so a
Relaunchcan replace its executable. (#1897, reported by @mistquay in #1896) - Iframes from another host of a custom scheme load their scripts, styles and fetches. (#1914, reported by @mytlx in #1912)
mygo devrebuilds while the app runs a background service from its resources, and copies only resources that changed. (#1908, reported by @chenxiao1990 in #1905)
Linux
- Under XWayland, a native menu that opens under the pointer stays open. (#1893, @ACAne0320)
- On GNOME, the dialog that confirms global shortcuts shows over the app's window under X11 and XWayland. (#1894, @ACAne0320)
- On GNOME, the file manager, browser or app that
Shell.ShowItemInFolder,OpenPathorOpenExternalopens comes to the front. (#1895, @ACAne0320)
Video
- On macOS,
plugins/rendergives every frame of a video its exact duration at any frame rate, so a 29.97 or 59.94 video plays at its own rate. (#1883, @pseudoyu)
Website
- The Showcase now lives in egoist/mygo-showcase; add apps there.
New Contributors
- @KevinXC5 made their first contribution in #1886
- @yudongyouqing made their first contribution in #1909
Full Changelog: v0.9.1...v0.9.2