()
| 12 | ) |
| 13 | |
| 14 | func init() { |
| 15 | system.HandleRecover = handleRecover |
| 16 | system.InitScreenLogicalDPIFunc = AppearanceSettings.applyDPI // called when screens are initialized |
| 17 | TheApp.CogentCoreDataDir() // ensure it exists |
| 18 | theWindowGeometrySaver.needToReload() // gets time stamp associated with open, so it doesn't re-open |
| 19 | theWindowGeometrySaver.open() |
| 20 | styles.SettingsFont = (*string)(&AppearanceSettings.Font) |
| 21 | styles.SettingsMonoFont = (*string)(&AppearanceSettings.MonoFont) |
| 22 | |
| 23 | if testing.Testing() { |
| 24 | // needed to prevent app from quitting prematurely |
| 25 | NewBody().RunWindow() |
| 26 | } |
| 27 | } |
nothing calls this directly
no test coverage detected