You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Added battery status check in UpdateWorker before starting upgrades
2. Show notification if battery is not plugged in
3. Added new signal startDoUpgrade to properly handle dialog closing
4. Updated translations for new battery check message
5. Modified update dialog to close only after upgrade starts
This change prevents system updates when running on battery to avoid
potential issues from power loss during update process. The dialog
now closes at the right time after the upgrade begins rather than
immediately when clicking the button.
feat: 在系统更新前添加电池检查
1. 在UpdateWorker中添加升级前的电池状态检查
2. 如果未插入电源则显示通知
3. 添加新的startDoUpgrade信号以正确处理对话框关闭
4. 更新电池检查消息的翻译
5. 修改更新对话框只在升级开始后关闭
此更改可防止在电池供电时进行系统更新,以避免更新过程中断电可能导致的问
题。对话框现在会在升级开始后而不是点击按钮时立即关闭。
pms: Bug-320697
<source>The system has enabled auto recovery function and does not support updates. If you have any questions, please contact the enterprise administrator</source>
250
-
<translationtype="unfinished"/>
252
+
<translationtype="unfinished"></translation>
251
253
</message>
252
254
</context>
253
255
<context>
254
256
<name>UpdateSelectDialog</name>
255
257
<message>
256
258
<source>The updates have been already downloaded. What do you want to do?</source>
<source>The log has been exported to the desktop</source>
407
-
<translationtype="unfinished"/>
409
+
<translationtype="unfinished"></translation>
408
410
</message>
409
411
<message>
410
412
<source>Update</source>
411
413
<translation>Aktualisieren</translation>
412
414
</message>
415
+
<message>
416
+
<source>Please plug in and then install updates.</source>
417
+
<translationtype="unfinished"></translation>
418
+
</message>
413
419
</context>
414
420
<context>
415
421
<name>update</name>
@@ -525,4 +531,4 @@
525
531
<translation>Der Akku ist unter 60%. Um die Aktualisierung erfolgreich durchführen zu können schließen Sie bitte den Rechner ans Stromnetz an.</translation>
0 commit comments