dailynote auto refresh defaults to false

This commit is contained in:
DismissedLight
2024-07-06 18:20:44 +08:00
parent 32a22695e3
commit 5b98ba3fc4
3 changed files with 23 additions and 12 deletions

View File

@@ -1382,6 +1382,9 @@
<data name="ViewDialogQRCodeTitle" xml:space="preserve">
<value>使用米游社扫描二维码</value>
</data>
<data name="ViewDialogReconfirmHint" xml:space="preserve">
<value>为了确保功能的启用者有独立的判断能力,我们将不定期更新这些功能的启用条件,如果您是一位内容创造者,在创作胡桃相关的内容时请不要向你的受众介绍具体的启用方法。</value>
</data>
<data name="ViewDialogReconfirmTextHeader" xml:space="preserve">
<value>为防止你在无意间启用,请输入正在启用的功能开关的&lt;b&gt;标题名称&lt;/b&gt;</value>
</data>

View File

@@ -37,7 +37,7 @@ internal sealed partial class DailyNoteOptions : DbStoreOptions
public bool IsAutoRefreshEnabled
{
get => GetOption(ref isAutoRefreshEnabled, SettingEntry.DailyNoteIsAutoRefreshEnabled, true);
get => GetOption(ref isAutoRefreshEnabled, SettingEntry.DailyNoteIsAutoRefreshEnabled, false);
set
{
if (SetOption(ref isAutoRefreshEnabled, SettingEntry.DailyNoteIsAutoRefreshEnabled, value))

View File

@@ -14,15 +14,23 @@
Style="{StaticResource DefaultContentDialogStyle}"
mc:Ignorable="d">
<TextBox
Margin="0,0,0,8"
VerticalAlignment="Top"
Style="{StaticResource DefaultTextBoxStyle}"
Text="{x:Bind Text, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}">
<TextBox.HeaderTemplate>
<DataTemplate>
<shuxct:HtmlDescriptionTextBlock Description="{shuxm:ResourceString Name=ViewDialogReconfirmTextHeader}"/>
</DataTemplate>
</TextBox.HeaderTemplate>
</TextBox>
<StackPanel Spacing="16">
<InfoBar
IsClosable="False"
IsOpen="True"
Message="{shuxm:ResourceString Name=ViewDialogReconfirmHint}"
Severity="Error"/>
<TextBox
Margin="0,0,0,8"
VerticalAlignment="Top"
Opacity="0.15"
Style="{StaticResource DefaultTextBoxStyle}"
Text="{x:Bind Text, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}">
<TextBox.HeaderTemplate>
<DataTemplate>
<shuxct:HtmlDescriptionTextBlock Description="{shuxm:ResourceString Name=ViewDialogReconfirmTextHeader}"/>
</DataTemplate>
</TextBox.HeaderTemplate>
</TextBox>
</StackPanel>
</ContentDialog>