mirror of
https://github.com/relativemodder/aegnux.git
synced 2025-12-12 06:29:41 +05:00
cleanup from wine headers and some UI changes
This commit is contained in:
@@ -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()
|
||||
Reference in New Issue
Block a user