From 13c0e86c3577bc9d1b5cd2389b3bd3bc0aa14ae5 Mon Sep 17 00:00:00 2001 From: 22 <60903333+nini22P@users.noreply.github.com> Date: Thu, 6 Feb 2025 18:48:09 +0800 Subject: [PATCH] feat: support for custom https ports when adding WebDAV storage --- CHANGELOG.md | 11 +++++++++++ lib/pages/dialog/show_webdav_dialog.dart | 6 ++---- pubspec.yaml | 2 +- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 57156e3..d086c94 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,14 @@ +## v1.3.2 + +### Changelog + +* Support for custom https ports when adding WebDAV storage + +### 更新日志 + +* 添加 WebDAV 存储时支持自定义 https 端口 + + ## v1.3.1 ### Changelog diff --git a/lib/pages/dialog/show_webdav_dialog.dart b/lib/pages/dialog/show_webdav_dialog.dart index 9a3e8d8..5f4afa1 100644 --- a/lib/pages/dialog/show_webdav_dialog.dart +++ b/lib/pages/dialog/show_webdav_dialog.dart @@ -151,8 +151,6 @@ class WebDAVDialog extends HookWidget { isTested.value = false; if (value == '443') { https.value = true; - } else { - https.value = false; } }, ), @@ -176,9 +174,9 @@ class WebDAVDialog extends HookWidget { value: https.value, onChanged: (_) { isTested.value = false; - if (!https.value) { + if (portController.text == '80') { portController.text = '443'; - } else { + } else if (portController.text == '443') { portController.text = '80'; } https.value = !https.value; diff --git a/pubspec.yaml b/pubspec.yaml index a14536e..75dbeea 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: iris description: "A lightweight video player" publish_to: 'none' -version: 1.3.1+3 +version: 1.3.2+3 environment: sdk: ^3.5.4