From 36304e8356cbc417398d26f18cb577f107dbc6cc Mon Sep 17 00:00:00 2001 From: David Sparer Date: Thu, 11 May 2017 15:39:33 -0600 Subject: [PATCH] slightly improved the setup of Runtime.IsPortableEdition refactoring the name of this property is now safer --- mRemoteV1/App/Runtime.cs | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/mRemoteV1/App/Runtime.cs b/mRemoteV1/App/Runtime.cs index 98cf26304..014eae749 100644 --- a/mRemoteV1/App/Runtime.cs +++ b/mRemoteV1/App/Runtime.cs @@ -25,11 +25,17 @@ namespace mRemoteNG.App { #region Public Properties - #if PORTABLE - public static bool IsPortableEdition { get; } = true; - #else - public static bool IsPortableEdition { get; } = false; - #endif + public static bool IsPortableEdition + { + get + { +#if PORTABLE + return true; +#else + return false; +#endif + } + } public static WindowList WindowList { get; set; } public static MessageCollector MessageCollector { get; } = new MessageCollector();