Add singleton support for QuikApplication.

This commit is contained in:
H. Utku Maden 2024-05-05 16:45:25 +03:00
parent 3b73090f79
commit 9105b16df8

@ -49,6 +49,7 @@ namespace Quik
{
Platform = platform;
FontProvider = new FontProvider(this);
Current = this;
}
public IDisposable GetMedia(object key, MediaHint hint)
@ -101,5 +102,12 @@ namespace Quik
}
}
}
public static QuikApplication Current { get; private set; }
public static void SetCurrentApplication(QuikApplication application)
{
Current = application;
}
}
}