chore(localization): update
All checks were successful
Check Translations / check-translations (push) Successful in 13s
Code and build check / Check code (push) Successful in 1m21s
Code and build check / Build with uv (push) Successful in 46s

Signed-off-by: Boris Yumankulov <boria138@altlinux.org>
This commit is contained in:
2025-06-08 09:34:24 +05:00
parent 14dc44d4f7
commit 647394ca92
10 changed files with 120 additions and 149 deletions

View File

@ -1,5 +1,5 @@
import subprocess
from PySide6.QtWidgets import QDialog, QVBoxLayout, QPushButton, QLabel, QMessageBox
from PySide6.QtWidgets import QDialog, QVBoxLayout, QPushButton, QMessageBox
from PySide6.QtWidgets import QApplication
from PySide6.QtCore import Qt
from portprotonqt.logger import get_logger
@ -20,11 +20,6 @@ class SystemOverlay(QDialog):
layout.setContentsMargins(20, 20, 20, 20)
layout.setSpacing(10)
title = QLabel(_("System Actions"))
title.setStyleSheet(self.theme.TAB_TITLE_STYLE)
title.setAlignment(Qt.AlignmentFlag.AlignCenter)
layout.addWidget(title)
# Reboot button
reboot_button = QPushButton(_("Reboot"))
#reboot_button.setStyleSheet(self.theme.ACTION_BUTTON_STYLE)
@ -71,14 +66,6 @@ class SystemOverlay(QDialog):
QMessageBox.warning(self, _("Error"), _("Failed to reboot the system"))
self.accept()
def sleep(self):
try:
subprocess.run(["systemctl", "suspend-then-hibernate"], check=True)
except subprocess.CalledProcessError as e:
logger.error(f"Failed to sleep: {e}")
QMessageBox.warning(self, _("Error"), _("Failed to put the system to sleep"))
self.accept()
def shutdown(self):
try:
subprocess.run(["systemctl", "poweroff"], check=True)