Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/DiscordChatExporter/commit/afb4bc67aea08ce971f45c2f5a557e8c4deb7940
You should set ROOT_URL correctly, otherwise the web may not work correctly.
1 changed files with
20 additions and
2 deletions
@ -1,13 +1,14 @@
using DiscordChatExporter.Core.Exporting ;
using Microsoft.Win32 ;
using Tyrrrz.Settings ;
namespace DiscordChatExporter.Gui.Services ;
public class SettingsService : SettingsManager
public partial class SettingsService : SettingsManager
{
public bool IsAutoUpdateEnabled { get ; set ; } = true ;
public bool IsDarkModeEnabled { get ; set ; }
public bool IsDarkModeEnabled { get ; set ; } = IsDarkModeEnabledByDefault ( ) ;
public bool IsTokenPersisted { get ; set ; } = true ;
@ -35,4 +36,21 @@ public class SettingsService : SettingsManager
}
public bool ShouldSerializeLastToken ( ) = > IsTokenPersisted ;
}
public partial class SettingsService
{
private static bool IsDarkModeEnabledByDefault ( )
{
try
{
return Registry . CurrentUser . OpenSubKey (
"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize" , false
) ? . GetValue ( "AppsUseLightTheme" ) is 0 ;
}
catch
{
return false ;
}
}
}