mirror of
https://github.com/simon-ding/polaris.git
synced 2026-06-10 03:57:39 +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)
|
downloadDir := c.GetSetting(SettingDownloadDir)
|
||||||
if downloadDir == "" {
|
if downloadDir == "" {
|
||||||
log.Infof("set default download dir")
|
log.Infof("set default download dir")
|
||||||
c.SetSetting(downloadDir, "/downloads")
|
c.SetSetting(SettingDownloadDir, "/downloads")
|
||||||
}
|
}
|
||||||
logLevel := c.GetSetting(SettingLogLevel)
|
logLevel := c.GetSetting(SettingLogLevel)
|
||||||
if logLevel == "" {
|
if logLevel == "" {
|
||||||
|
|||||||
@@ -564,7 +564,7 @@ class _SystemSettingsPageState extends ConsumerState<SystemSettingsPage> {
|
|||||||
"user": values["user"],
|
"user": values["user"],
|
||||||
"password": values["password"],
|
"password": values["password"],
|
||||||
"change_file_hash":
|
"change_file_hash":
|
||||||
values["change_file_hash"] as bool ? "true" : "false"
|
(values["change_file_hash"]??false) as bool ? "true" : "false"
|
||||||
},
|
},
|
||||||
));
|
));
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -271,7 +271,7 @@ class _TvDetailsPageState extends ConsumerState<TvDetailsPage> {
|
|||||||
data: (v) {
|
data: (v) {
|
||||||
return SingleChildScrollView(
|
return SingleChildScrollView(
|
||||||
child: DataTable(
|
child: DataTable(
|
||||||
dataTextStyle: TextStyle(fontSize: 12, height: 0),
|
dataTextStyle: const TextStyle(fontSize: 12, height: 0),
|
||||||
columns: const [
|
columns: const [
|
||||||
DataColumn(label: Text("名称")),
|
DataColumn(label: Text("名称")),
|
||||||
DataColumn(label: Text("大小")),
|
DataColumn(label: Text("大小")),
|
||||||
|
|||||||
Reference in New Issue
Block a user