Skip to content

Commit

Permalink
Move platformStartup to the end of startup
Browse files Browse the repository at this point in the history
  • Loading branch information
richardwilkes committed Aug 23, 2024
1 parent a4b2f5f commit afc2dbb
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ux/platform_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@

package ux

func performPlatformStartup() {
func performPlatformLateStartup() {
// no-op
}
2 changes: 1 addition & 1 deletion ux/platform_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import (
//go:embed images/doc-256.png
var docIconBytes []byte

func performPlatformStartup() {
func performPlatformLateStartup() {
exePath, err := os.Executable()
if err != nil {
errs.Log(err)
Expand Down
2 changes: 1 addition & 1 deletion ux/platform_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ var (
softwareClasses = `Software\Classes\`
)

func performPlatformStartup() {
func performPlatformLateStartup() {
if err := configureRegistry(); err != nil {
errs.Log(err)
}
Expand Down
2 changes: 1 addition & 1 deletion ux/startup.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ func Start(files []string) {
go libs.PerformUpdateChecks()
unison.Start(
unison.StartupFinishedCallback(func() {
performPlatformStartup()
unison.DefaultTableColumnHeaderTheme.OnBackgroundInk = colors.OnHeader
unison.DefaultMarkdownTheme.LinkHandler = HandleLink
unison.DefaultMarkdownTheme.WorkingDirProvider = WorkingDirProvider
Expand All @@ -53,6 +52,7 @@ func Start(files []string) {
unison.InvokeTask(func() { OpenFiles(paths) })
}
}()
unison.InvokeTask(performPlatformLateStartup)
}),
unison.OpenFilesCallback(OpenFiles),
unison.AllowQuitCallback(func() bool {
Expand Down

0 comments on commit afc2dbb

Please sign in to comment.