splash ui
This commit is contained in:
@@ -16,12 +16,7 @@ namespace Gallery
|
||||
public static PlatformCulture CurrentCulture { get; private set; }
|
||||
|
||||
public static Dictionary<string, System.DateTime> RefreshTimes { get; } = new();
|
||||
public static List<IGallerySource> GallerySources { get; } = new()
|
||||
{
|
||||
new Sources.Yandere.GallerySource(), // https://yande.re
|
||||
new Sources.Danbooru.GallerySource(), // https://danbooru.donmai.us
|
||||
new Sources.Gelbooru.GallerySource() // https://gelbooru.com
|
||||
};
|
||||
public static List<IGallerySource> GallerySources { get; private set; }
|
||||
|
||||
public App()
|
||||
{
|
||||
@@ -42,7 +37,7 @@ namespace Gallery
|
||||
private void InitPreference()
|
||||
{
|
||||
Config.Proxy = null;
|
||||
Config.DownloadThreads = Preferences.Get(Config.DownloadThreadsKey, 1);
|
||||
Config.DownloadThreads = Preferences.Get(Config.DownloadThreadsKey, 4);
|
||||
|
||||
var isProxied = Preferences.Get(Config.IsProxiedKey, false);
|
||||
if (isProxied)
|
||||
@@ -109,6 +104,14 @@ namespace Gallery
|
||||
protected override void OnStart()
|
||||
{
|
||||
InitLanguage();
|
||||
|
||||
GallerySources = new List<IGallerySource>()
|
||||
{
|
||||
new Sources.Yandere.GallerySource(), // https://yande.re
|
||||
new Sources.Danbooru.GallerySource(), // https://danbooru.donmai.us
|
||||
new Sources.Gelbooru.GallerySource() // https://gelbooru.com
|
||||
};
|
||||
|
||||
MainPage = new AppShell();
|
||||
|
||||
InitResource();
|
||||
@@ -117,6 +120,7 @@ namespace Gallery
|
||||
|
||||
protected override void OnSleep()
|
||||
{
|
||||
base.OnSleep();
|
||||
}
|
||||
|
||||
protected override void OnResume()
|
||||
|
Reference in New Issue
Block a user