Skip to content

Commit

Permalink
Improve Runtime mode detection
Browse files Browse the repository at this point in the history
  • Loading branch information
apobekiaris committed Nov 13, 2021
1 parent 828489a commit 2a10e47
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public static bool RuntimeMode{
var devProcesses = new[]{".ExpressApp.ModelEditor", "devenv","Xpand.XAF.ModelEditor"};
var processName = Process.GetCurrentProcess().ProcessName;
var isInProcess = devProcesses.Any(s => processName.IndexOf(s, StringComparison.Ordinal) > -1);
_runtimeMode = !isInProcess && LicenseManager.UsageMode != LicenseUsageMode.Designtime;
_runtimeMode = !isInProcess && LicenseManager.UsageMode != LicenseUsageMode.Designtime&&!DesignerOnlyCalculator.IsRunFromDesigner;
}
return _runtimeMode.Value;
}
Expand Down

0 comments on commit 2a10e47

Please sign in to comment.