The Birdfont Source Code


All Repositories / birdfont.git / blobdiff – RSS feed

Use .birdfont as default file extension instead of .bf

Changes made to libbirdfont/SaveCallback.vala

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
--- libbirdfont/SaveCallback.vala +++ libbirdfont/SaveCallback.vala @@ -49,8 +49,8 @@ font_file_path = f; save (); #else - if (!f.has_suffix (".bf")) { - f = @"$f.bf"; + if (!f.has_suffix (".bf") && !f.has_suffix (".birdfont")) { + f = @"$f.birdfont"; } file_name = @"$(f)"; @@ -95,7 +95,9 @@ f.delete_backup (); fn = f.get_path (); - if (f.font_file != null && fn.has_suffix (".bf")) { + if (f.font_file != null + && (fn.has_suffix (".bf") || fn.has_suffix (".birdfont"))) { + f.set_font_file (fn); MainWindow.native_window.save (); } else {