mirror of
https://github.com/simon-ding/polaris.git
synced 2026-06-06 10:07:45 +08:00
fix: bugs
This commit is contained in:
2
db/db.go
2
db/db.go
@@ -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 == "" {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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("大小")),
|
||||
|
||||
Reference in New Issue
Block a user