mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Fix python plugin crash issues.
This commit is contained in:
parent
4006e4045c
commit
54417115f3
1 changed files with 3 additions and 0 deletions
|
|
@ -38,6 +38,9 @@ namespace Python.Runtime {
|
|||
|
||||
internal static void Register(Type t) {
|
||||
Dictionary<string, List<string>> nsmap = null;
|
||||
//for Anonymous type, there is no namespace
|
||||
if (t.Namespace == null) return;
|
||||
|
||||
mapping.TryGetValue(t.Namespace, out nsmap);
|
||||
if (nsmap == null) {
|
||||
nsmap = new Dictionary<string, List<string>>();
|
||||
|
|
|
|||
Loading…
Reference in a new issue