Skip to content

Commit efb00fc

Browse files
committed
Added icon to windows
1 parent 36b9b72 commit efb00fc

18 files changed

+94
-7
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
- Installation and building instructions for Linux have been added to README.md.
1111
- If you start a virtual machine, there is now a message at the bottom of the window which could be helpful when debugging.
1212
- There is now a window which warns you if your VM uses the depreciated USB checkbox.
13+
- The icon is now present on the windows as well.
1314

1415
# EmuGUI v0.4.2
1516

99 Bytes
Binary file not shown.
132 Bytes
Binary file not shown.
159 Bytes
Binary file not shown.
118 Bytes
Binary file not shown.
159 Bytes
Binary file not shown.
118 Bytes
Binary file not shown.
184 Bytes
Binary file not shown.
118 Bytes
Binary file not shown.

dialogExecution/editVirtualMachine.py

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from PySide6.QtWidgets import *
2+
from PySide6 import QtGui
23
from uiScripts.ui_NewVM import Ui_Dialog
34
import sqlite3
45
import platform
@@ -15,7 +16,14 @@ def __init__(self, parent=None):
1516
self.setupUi(self)
1617
self.connectSignalsSlots()
1718
self.vmSpecs = self.readTempVmFile()
18-
self.setWindowTitle(f"EmuGUI - Edit {self.vmSpecs[0]}")
19+
20+
try:
21+
self.setWindowIcon(QtGui.QIcon("EmuGUI.png"))
22+
23+
except:
24+
pass
25+
26+
self.setWindowIcon(QtGui.QIcon("EmuGUI.png"))
1927

2028
if platform.system() == "Windows":
2129
tempVmDef = platformSpecific.windowsSpecific.windowsTempVmStarterFile()
@@ -503,7 +511,11 @@ def finishCreation(self):
503511

504512
try:
505513
vhd_cmd_split = vhd_cmd.split(" ")
506-
subprocess.run(vhd_cmd_split)
514+
515+
if vhdAction.startswith("overwrite"):
516+
subprocess.run(vhd_cmd_split)
517+
518+
print("The query was executed and the virtual disk created successfully.")
507519

508520
except:
509521
print("The virtual disk could not be created. Please check if the path and the QEMU settings are correct.")

0 commit comments

Comments
 (0)