Commit d67f84d
Run only one export from preview tab
Changed files (3)
modifiedlibbirdfont/Menu.valamodifiedlibbirdfont/MenuTab.valamodifiedlibbirdfont/SpacingData.vala
Diff
@@ -476,8 +476,10 @@ public class Menu : GLib.Object { if (!tm.tool.is_tool_modifier) { MainWindow.get_toolbox ().set_current_tool (tm.tool);+ return; } else { tm.tool.select_action (tm.tool);+ return; } } }@@ -360,9 +360,9 @@ public class MenuTab : FontDisplay { } dialog.overwrite_signal.connect (() => {+ KeyBindings.set_modifier (NONE); tab_bar.add_unique_tab (new Preview (), true); PreviewTools.update_preview ();- KeyBindings.set_modifier (NONE); }); if ((format == FontFormat.SVG || format == FontFormat.FREETYPE) && !OverWriteDialogListener.dont_ask_again) {@@ -466,6 +466,11 @@ public class MenuTab : FontDisplay { } public static void simplify_path () {+ if (suppress_event) {+ warn_if_test ("Event suppressed");+ return;+ }+ Task t = new Task (); t.task.connect (simplify); MainWindow.native_window.run_background_thread (t);@@ -21,7 +21,7 @@ public class SpacingData : GLib.Object { public KerningClasses kerning_classes; public Gee.ArrayList<SpacingClass> classes = new Gee.ArrayList<SpacingClass> ();- Gee.ArrayList<String> connections = new Gee.ArrayList<String> ();+ Gee.ArrayList<string> connections = new Gee.ArrayList<string> (); public SpacingData (KerningClasses kerning) { kerning_classes = kerning;@@ -32,15 +32,14 @@ public class SpacingData : GLib.Object { } public Gee.ArrayList<string> get_all_connections (string glyph) {- String s; Gee.ArrayList<string> c = new Gee.ArrayList<string> (); connections.clear (); add_connections (glyph); - foreach (String t in connections) {- c.add (t.data.dup ());+ foreach (string t in connections) {+ c.add (t.dup ()); } connections.clear ();@@ -49,8 +48,8 @@ public class SpacingData : GLib.Object { } bool has_connection (string s) {- foreach (String t in connections) {- if (t.data == s) {+ foreach (string t in connections) {+ if (t == s) { return true; } }@@ -59,7 +58,7 @@ public class SpacingData : GLib.Object { } public void add_connections (string glyph) {- String sb = new String (glyph);+ string sb = glyph; connections.add (sb); @@ -119,15 +118,6 @@ public class SpacingData : GLib.Object { KerningTools.update_spacing_classes (); }- - class String : GLib.Object {- - public string data;- - public String (string s) {- data = s.dup ();- } - } } }