diff --git a/src/main/config/profile.ts b/src/main/config/profile.ts index e76b128..8489492 100644 --- a/src/main/config/profile.ts +++ b/src/main/config/profile.ts @@ -114,6 +114,7 @@ export async function createProfile(item: Partial): Promise): Promise = (props) => { }} /> + + { + setValues({ ...values, allowFixedInterval: v }) + }} + /> + )} diff --git a/src/renderer/src/locales/en-US.json b/src/renderer/src/locales/en-US.json index 93639ee..c300cab 100644 --- a/src/renderer/src/locales/en-US.json +++ b/src/renderer/src/locales/en-US.json @@ -345,6 +345,7 @@ "profiles.editInfo.url": "Subscription URL", "profiles.editInfo.useProxy": "Use Proxy to Update", "profiles.editInfo.interval": "Upd. Interval (min)", + "profiles.editInfo.fixedInterval": "Fixed Update Interval", "profiles.editInfo.override.title": "Override", "profiles.editInfo.override.global": "Global", "profiles.editInfo.override.noAvailable": "No available overrides", diff --git a/src/renderer/src/locales/fa-IR.json b/src/renderer/src/locales/fa-IR.json index 686c8e3..eb636cb 100644 --- a/src/renderer/src/locales/fa-IR.json +++ b/src/renderer/src/locales/fa-IR.json @@ -350,6 +350,7 @@ "profiles.editInfo.url": "آدرس اشتراک", "profiles.editInfo.useProxy": "استفاده از پراکسی برای به‌روزرسانی", "profiles.editInfo.interval": "فاصله به‌روزرسانی (دقیقه)", + "profiles.editInfo.fixedInterval": "فاصله به‌روزرسانی ثابت", "profiles.editInfo.override.title": "جایگزینی", "profiles.editInfo.override.global": "جهانی", "profiles.editInfo.override.noAvailable": "جایگزینی در دسترس نیست", diff --git a/src/renderer/src/locales/ru-RU.json b/src/renderer/src/locales/ru-RU.json index 63dcc2c..3c9c4a2 100644 --- a/src/renderer/src/locales/ru-RU.json +++ b/src/renderer/src/locales/ru-RU.json @@ -350,6 +350,7 @@ "profiles.editInfo.url": "URL подписки", "profiles.editInfo.useProxy": "Использовать прокси для обновления", "profiles.editInfo.interval": "Интервал обн. (мин)", + "profiles.editInfo.fixedInterval": "Фиксированный интервал обновления", "profiles.editInfo.override.title": "Переопределение", "profiles.editInfo.override.global": "Глобальный", "profiles.editInfo.override.noAvailable": "Нет доступных переопределений", diff --git a/src/renderer/src/locales/zh-CN.json b/src/renderer/src/locales/zh-CN.json index 6f01e4e..8c405ce 100644 --- a/src/renderer/src/locales/zh-CN.json +++ b/src/renderer/src/locales/zh-CN.json @@ -350,6 +350,7 @@ "profiles.editInfo.url": "订阅地址", "profiles.editInfo.useProxy": "使用代理更新", "profiles.editInfo.interval": "更新间隔(分钟)", + "profiles.editInfo.fixedInterval": "固定更新间隔", "profiles.editInfo.override.title": "覆写", "profiles.editInfo.override.global": "全局", "profiles.editInfo.override.noAvailable": "没有可用的覆写", diff --git a/src/shared/types.d.ts b/src/shared/types.d.ts index b7b2ef3..b761097 100644 --- a/src/shared/types.d.ts +++ b/src/shared/types.d.ts @@ -461,6 +461,7 @@ interface IProfileItem { useProxy?: boolean extra?: ISubscriptionUserInfo substore?: boolean + allowFixedInterval?: boolean } interface ISubStoreSub {