From 56ed7f3a087c0a7a951f094d237a552f3fac15ba Mon Sep 17 00:00:00 2001 From: Taka Date: Tue, 16 Jul 2019 19:56:36 +0000 Subject: [PATCH] Worked around a method binding problem on Windows. --- src/ChartImage.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ChartImage.cs b/src/ChartImage.cs index dee0420..b247691 100644 --- a/src/ChartImage.cs +++ b/src/ChartImage.cs @@ -39,7 +39,7 @@ public class ChartImage else { if ( ! mShortcuts.ContainsKey( shortcut ) ) mShortcuts[ shortcut ] = new List() ; - logger.Info( $"Registering shortcut: {shortcutString(shortcut.Item1,shortcut.Item2)} => ${caption()}" ) ; + logger.Info( $"Registering shortcut: {shortcutString(shortcut.Item1,shortcut.Item2)} => {caption()}" ) ; mShortcuts[ shortcut ].Add( this ) ; } } @@ -144,7 +144,8 @@ public class ChartImage private Tuple parseShortcut( string val ) { // parse the shortcut - string[] parts = val.ToLower().Split( "-" ) ; + // FUDGE! Can't just pass in '-' since a Mono-compiled EXE has trouble running on Windows :-/ + string[] parts = val.ToLower().Split( new char[]{'-'} ) ; Keys modifiers = 0 ; for ( int i=0 ; i < parts.Length-1 ; ++i ) { if ( parts[i] == "ctrl" )