Skip to content

Commit be6479a

Browse files
committed
Add Learn More button
1 parent 912338d commit be6479a

File tree

4 files changed

+24
-4
lines changed

4 files changed

+24
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757

5858
- You are now notified via a dialog should your system become unsupported.
5959
- Formatting fixed.
60+
- "Learn more" button added.
6061

6162
## Known issues
6263

dialogExecution/win81NearEOS.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from uiScripts.ui_Win81SupportNearsEnd import Ui_Dialog
22
from PySide6.QtWidgets import *
33
from PySide6 import QtGui
4+
import webbrowser
45

56
class Win812012R2NearEOS(QDialog, Ui_Dialog):
67
def __init__(self, parent = None):
@@ -14,6 +15,7 @@ def __init__(self, parent = None):
1415
- Windows 10 1607, Server 2016 or the latest version of your Linux distribution (amd64)
1516
- 4-threaded CPU
1617
- 8 GB of RAM your OS can share with running applications
18+
- 4 GB of free hard disk space
1719
1820
Please visit the GitHub repository to learn more.
1921
"""
@@ -28,4 +30,8 @@ def __init__(self, parent = None):
2830
self.label.setText(eolText)
2931

3032
def connectSignalsSlots(self):
31-
self.pushButton.clicked.connect(self.close)
33+
self.pushButton.clicked.connect(self.close)
34+
self.learnMoreBtn.clicked.connect(self.learnMore)
35+
36+
def learnMore(self):
37+
webbrowser.open("https://github.com/Tech-FZ/EmuGUI/wiki/EmuGUI-receiving-higher-hardware-requirements-starting-11th-November,-2025")

ui/Win81SupportNearsEnd.ui

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,13 @@
5555
</property>
5656
</widget>
5757
</item>
58+
<item row="2" column="0">
59+
<widget class="QPushButton" name="learnMoreBtn">
60+
<property name="text">
61+
<string>Learn more</string>
62+
</property>
63+
</widget>
64+
</item>
5865
</layout>
5966
</widget>
6067
</widget>

uiScripts/ui_Win81SupportNearsEnd.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# -*- coding: utf-8 -*-
22

33
################################################################################
4-
## Form generated from reading UI file 'Win81SupportNearsEnd.ui'
4+
## Form generated from reading UI file 'Win81SupportNearsEndHfaJdn.ui'
55
##
6-
## Created by: Qt User Interface Compiler version 6.4.1
6+
## Created by: Qt User Interface Compiler version 6.8.0
77
##
88
## WARNING! All changes made in this file will be lost when recompiling UI file!
99
################################################################################
@@ -43,6 +43,11 @@ def setupUi(self, Dialog):
4343

4444
self.gridLayout.addWidget(self.pushButton, 1, 0, 1, 1)
4545

46+
self.learnMoreBtn = QPushButton(self.gridLayoutWidget)
47+
self.learnMoreBtn.setObjectName(u"learnMoreBtn")
48+
49+
self.gridLayout.addWidget(self.learnMoreBtn, 2, 0, 1, 1)
50+
4651

4752
self.retranslateUi(Dialog)
4853

@@ -51,7 +56,8 @@ def setupUi(self, Dialog):
5156

5257
def retranslateUi(self, Dialog):
5358
Dialog.setWindowTitle(QCoreApplication.translate("Dialog", u"Dialog", None))
54-
self.label.setText(QCoreApplication.translate("Dialog", u"If you got EmuGUI running on Windows 8.1 or Windows Server 2012 R2, congratulations. Unfortunately, these OSes aren't supported anymore.", None))
59+
self.label.setText(QCoreApplication.translate("Dialog", u"Sorry to notify you but Windows 8.1 and Windows Server 2012 R2 are only supported until February 14th, 2023.", None))
5560
self.pushButton.setText(QCoreApplication.translate("Dialog", u"OK", None))
61+
self.learnMoreBtn.setText(QCoreApplication.translate("Dialog", u"Learn more", None))
5662
# retranslateUi
5763

0 commit comments

Comments
 (0)