mirror of
				https://github.com/vsariola/sointu.git
				synced 2025-10-30 23:45:53 -04:00 
			
		
		
		
	fix(gioui/tracker): song files were not truncated when opened for writing (closes #103)
This commit is contained in:
		
						parent
						
							de3f4d987f
						
					
				
				
					commit
					231e055faf
				
			| @ -32,7 +32,7 @@ func (t *Tracker) OpenSongFile(forced bool) { | ||||
|  | ||||
| func (t *Tracker) SaveSongFile() bool { | ||||
| 	if p := t.FilePath(); p != "" { | ||||
| 		if f, err := os.OpenFile(p, os.O_WRONLY|os.O_CREATE, 0644); err == nil { | ||||
| 		if f, err := os.Create(p); err == nil { | ||||
| 			return t.saveSong(f) | ||||
| 		} | ||||
| 	} | ||||
|  | ||||
		Reference in New Issue
	
	Block a user