The Birdfont Source Code


All Repositories / birdfont.git / blobdiff – RSS feed

Merge ../birdfont-2.x

Changes made to libbirdfont/BirdFont.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/BirdFont.vala +++ libbirdfont/BirdFont.vala @@ -346,14 +346,17 @@ } public static File get_preview_directory () { - File settings = get_settings_directory (); - File backup = get_child(settings, "preview"); - - if (!backup.query_exists ()) { - DirUtils.create ((!) backup.get_path (), 0755); + string? export = BirdFont.get_current_font ().get_export_directory (); + + if (export == null) { + warning ("No export directory is set."); + export = ""; } - return backup; + File e = File.new_for_path ((!) export); + File p = get_child(e, "preview"); + + return p; } public static void set_settings_subdir (string? subdir) {