cleanup from wine headers and some UI changes

This commit is contained in:
Andrew
2025-10-30 18:46:17 +03:00
parent 0675b4a305
commit 54181b5bbc
1400 changed files with 31 additions and 1423008 deletions

View File

@@ -1,6 +1,6 @@
from PySide6.QtWidgets import (
QVBoxLayout, QWidget, QHBoxLayout,
QLabel, QMainWindow, QPushButton,
QLabel, QMainWindow, QPushButton, QMessageBox,
QSpacerItem, QSizePolicy, QTextEdit, QProgressBar
)
from PySide6.QtCore import Qt, QSize
@@ -168,4 +168,17 @@ class MainWindowUI(QMainWindow):
footer_label.setWordWrap(True)
footer_label.setAlignment(Qt.AlignmentFlag.AlignHCenter)
self.root_layout.addWidget(footer_label)
self.root_layout.addWidget(footer_label)
def closeEvent(self, event):
reply = QMessageBox.question(
self, gls('confirm_exit'),
gls('confirm_exit_text'),
QMessageBox.StandardButton.Yes | QMessageBox.StandardButton.No,
QMessageBox.StandardButton.No
)
if reply == QMessageBox.StandardButton.Yes:
event.accept()
else:
event.ignore()