windowName returns window name before first colon, if exists. This is the part of the name used to record settings
(winName string)
| 207 | // windowName returns window name before first colon, if exists. |
| 208 | // This is the part of the name used to record settings |
| 209 | func (ws *windowGeometrySaver) windowName(winName string) string { |
| 210 | if ci := strings.Index(winName, ":"); ci > 0 { |
| 211 | return winName[:ci] |
| 212 | } |
| 213 | return winName |
| 214 | } |
| 215 | |
| 216 | // settingStart turns on SettingNoSave to prevent subsequent redundant calls to |
| 217 | // save a geometry that was being set from already-saved settings. |
no test coverage detected