fix: bugs

This commit is contained in:
Simon Ding
2024-07-28 15:54:51 +08:00
parent fc86a441f4
commit 7f025a6246
3 changed files with 3 additions and 3 deletions

View File

@@ -56,7 +56,7 @@ func (c *Client) init() {
downloadDir := c.GetSetting(SettingDownloadDir)
if downloadDir == "" {
log.Infof("set default download dir")
c.SetSetting(downloadDir, "/downloads")
c.SetSetting(SettingDownloadDir, "/downloads")
}
logLevel := c.GetSetting(SettingLogLevel)
if logLevel == "" {

View File

@@ -564,7 +564,7 @@ class _SystemSettingsPageState extends ConsumerState<SystemSettingsPage> {
"user": values["user"],
"password": values["password"],
"change_file_hash":
values["change_file_hash"] as bool ? "true" : "false"
(values["change_file_hash"]??false) as bool ? "true" : "false"
},
));
} else {

View File

@@ -271,7 +271,7 @@ class _TvDetailsPageState extends ConsumerState<TvDetailsPage> {
data: (v) {
return SingleChildScrollView(
child: DataTable(
dataTextStyle: TextStyle(fontSize: 12, height: 0),
dataTextStyle: const TextStyle(fontSize: 12, height: 0),
columns: const [
DataColumn(label: Text("名称")),
DataColumn(label: Text("大小")),