The Birdfont Source Code


All Repositories / birdfont.git / commitdiff – RSS feed

Don't enable merge function by default

These changes was commited to the Birdfont repository Sat, 08 Aug 2015 06:40:56 +0000.

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
[Sat, 08 Aug 2015 06:40:56 +0000]

Updated Files

libbirdfont/Menu.vala
--- a/libbirdfont/Menu.vala +++ b/libbirdfont/Menu.vala @@ -230,15 +230,17 @@ edit_menu.items.add (select_point_below); // FIXME: overview - MenuItem merge_paths = add_menu_item (t_("Merge Paths"), "merge_paths", "Glyph"); - merge_paths.action.connect (() => { - Task t = new Task (); - t.task.connect (merge_selected_paths); - MainWindow.native_window.run_background_thread (t); - - show_menu = false; - }); - edit_menu.items.add (merge_paths); + if (BirdFont.has_argument ("--test")) { + MenuItem merge_paths = add_menu_item (t_("Merge Paths"), "merge_paths", "Glyph"); + merge_paths.action.connect (() => { + Task t = new Task (); + t.task.connect (merge_selected_paths); + MainWindow.native_window.run_background_thread (t); + + show_menu = false; + }); + edit_menu.items.add (merge_paths); + } // layers MenuItem layers = add_menu_item (t_("Layers"));