Skip to content

Commit

Permalink
[harmony] Avoid colons in filenames (#218)
Browse files Browse the repository at this point in the history
* Avoid colons in filenames for extended support on more OSes
  • Loading branch information
suddjian authored May 13, 2024
1 parent ec90ae6 commit 4692106
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/harmony/app/canvas.cpy
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ namespace app_ui:

void sanitize_filename(string &name):
for i := 0; i < name.length(); i++:
if name[i] == '/':
if name[i] == '/' or name[i] == ':':
name[i] = '_'

auto get_stroke_width():
Expand Down Expand Up @@ -363,7 +363,7 @@ namespace app_ui:
self.mark_redraw()


// we tack on ".hrm" to the filename
// we tack on ".[timestamp].hrm" to the filename
void save_project(bool overwrite=false):
sanitize_filename(self.project_name)
debug "SAVING PROJECT", self.project_name
Expand Down

0 comments on commit 4692106

Please sign in to comment.