From e177d6eaeaa43e6edf138e2219838725c512f044 Mon Sep 17 00:00:00 2001 From: TrueZhuanjia Date: Mon, 15 Sep 2025 13:15:04 +0800 Subject: [PATCH] perfGraph tips --- VoidLink/Localization/Localizable.xcstrings | 23 +++++++++++++++++++ .../ViewControllers/SettingsViewController.m | 8 +++++++ 2 files changed, 31 insertions(+) diff --git a/VoidLink/Localization/Localizable.xcstrings b/VoidLink/Localization/Localizable.xcstrings index c3a30862..d3327ddc 100644 --- a/VoidLink/Localization/Localizable.xcstrings +++ b/VoidLink/Localization/Localizable.xcstrings @@ -5278,6 +5278,29 @@ } } }, + "This is an experimental feature that may cause stuttering or freezing in the stream view." : { + "extractionState" : "manual", + "localizations" : { + "zh-Hans" : { + "stringUnit" : { + "state" : "translated", + "value" : "这是一项实验性功能,可能导致画面卡顿。" + } + }, + "zh-Hant" : { + "stringUnit" : { + "state" : "translated", + "value" : "這是一項實驗性功能,可能導致畫面卡頓。" + } + }, + "zh-HK" : { + "stringUnit" : { + "state" : "translated", + "value" : "這是一項實驗性功能,可能導致畫面卡頓。" + } + } + } + }, "Tips" : { "extractionState" : "manual", "localizations" : { diff --git a/VoidLink/ViewControllers/SettingsViewController.m b/VoidLink/ViewControllers/SettingsViewController.m index 6fe90ed9..bdb2ef73 100644 --- a/VoidLink/ViewControllers/SettingsViewController.m +++ b/VoidLink/ViewControllers/SettingsViewController.m @@ -2377,6 +2377,14 @@ BOOL isCustomResolution(int resolutionSelected) { - (void) enableGraphsChanged:(UISwitch* )sender { [self.graphOpacityStepper setEnabled:sender.isOn]; [self findDynamicLabelFromStack:self.graphOpacityStack].hidden = !sender.isOn; + UIAlertController *alertController = [UIAlertController alertControllerWithTitle: [LocalizationHelper localizedStringForKey:@"Tips"] message: [LocalizationHelper localizedStringForKey:@"This is an experimental feature that may cause stuttering or freezing in the stream view."] preferredStyle:UIAlertControllerStyleAlert]; + + UIAlertAction *okAction = [UIAlertAction actionWithTitle:[LocalizationHelper localizedStringForKey:@"OK"] + style:UIAlertActionStyleDefault + handler:nil]; + [alertController addAction:okAction]; + + if(sender.isOn && !settingsViewJustLoaded) [self presentViewController:alertController animated:YES completion:nil]; } - (void) graphOpacityStepperTapped:(UIStepper* )sender {