Make it more complete
This commit is contained in:
+10
-1
@@ -16,7 +16,16 @@ public static partial class Pages {
|
||||
|
||||
public static string Settings(ServerContext ctx)
|
||||
{
|
||||
return Components.Shell("Settings",settings_page.Render(new{}),Program.DefaultLinks());
|
||||
bool tytdthumbnail = false;
|
||||
lock(Program.MyLockObject)
|
||||
{
|
||||
tytdthumbnail = Program.Config?.ThumbnailsThroughTYTD ?? false;
|
||||
}
|
||||
|
||||
return Components.Shell("Settings", settings_page.Render(new
|
||||
{
|
||||
Tytdthumbnail=tytdthumbnail
|
||||
}),Program.DefaultLinks(3));
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user