mirror of
https://github.com/mupen64plus/mupen64plus-ui-python.git
synced 2025-04-02 10:51:53 -04:00
bug fixes
This commit is contained in:
parent
1b6691cb7b
commit
7e32642fe6
3 changed files with 8 additions and 6 deletions
|
@ -27,10 +27,13 @@ class AboutDialog(QDialog, Ui_AboutDialog):
|
|||
def __init__(self, parent):
|
||||
QDialog.__init__(self, parent)
|
||||
self.setupUi(self)
|
||||
if parent.worker.m64p.core_version != "Unknown":
|
||||
version = version_split(parent.worker.m64p.core_version)
|
||||
else:
|
||||
version = "Unknown"
|
||||
text = self.labelAbout.text()
|
||||
text = text.replace("FRONTEND_VERSION", FRONTEND_VERSION)
|
||||
text = text.replace("CORE_VERSION",
|
||||
version_split(parent.worker.m64p.core_version))
|
||||
text = text.replace("CORE_VERSION", version)
|
||||
self.labelAbout.setText(text)
|
||||
self.show()
|
||||
|
||||
|
|
|
@ -16,8 +16,7 @@
|
|||
|
||||
from PyQt4.QtCore import Qt
|
||||
|
||||
from m64py.SDL.constants import *
|
||||
from m64py.SDL2.scancode import *
|
||||
from m64py.frontend.keycodes import *
|
||||
|
||||
QT2SDL = {}
|
||||
QT2SDL2 = {}
|
||||
|
|
|
@ -144,8 +144,8 @@ class ROMList(QMainWindow, Ui_ROMList):
|
|||
|
||||
def refresh_items(self):
|
||||
"""Refreshes available ROMs list"""
|
||||
path_roms = self.qset.value("Paths/ROM")
|
||||
if not path_roms:
|
||||
path_roms = str(self.qset.value("Paths/ROM"))
|
||||
if not path_roms or path_roms == "None":
|
||||
self.parent.emit(SIGNAL(
|
||||
"info_dialog(PyQt_PyObject)"),
|
||||
"ROMs directory not found.")
|
||||
|
|
Loading…
Add table
Reference in a new issue