Make desktop.Start run on main thread (#2475)

This commit is contained in:
WithoutPants
2022-04-05 14:58:08 +10:00
committed by GitHub
parent 61d9f57ce9
commit 230d8f6028
4 changed files with 20 additions and 12 deletions

View File

@@ -26,6 +26,7 @@ type FaviconProvider interface {
}
// Start starts the desktop icon process. It blocks until the process exits.
// MUST be run on the main goroutine or will have no effect on macOS
func Start(shutdownHandler ShutdownHandler, faviconProvider FaviconProvider) {
if IsDesktop() {
c := config.GetInstance()