hotfix
This commit is contained in:
parent
4718ac55aa
commit
cb8941b97c
1 changed files with 3 additions and 3 deletions
6
main.py
6
main.py
|
@ -129,7 +129,7 @@ def toggle_stylesheet(path):
|
||||||
file.open(QFile.ReadOnly | QFile.Text)
|
file.open(QFile.ReadOnly | QFile.Text)
|
||||||
stream = QTextStream(file)
|
stream = QTextStream(file)
|
||||||
theme = stream.readAll()
|
theme = stream.readAll()
|
||||||
|
|
||||||
pref.setStyleSheet(theme)
|
pref.setStyleSheet(theme)
|
||||||
win.setStyleSheet(theme)
|
win.setStyleSheet(theme)
|
||||||
hotk.setStyleSheet(theme)
|
hotk.setStyleSheet(theme)
|
||||||
|
@ -209,8 +209,8 @@ def get_files(dir_, config):
|
||||||
name = os.path.join(dir_, i)
|
name = os.path.join(dir_, i)
|
||||||
if name == None:
|
if name == None:
|
||||||
sounds_list.append(i)
|
sounds_list.append(i)
|
||||||
elif os.path.splitext(name)[1] in ['.mp3', '.m4a', '.wav']:
|
elif os.path.splitext(i)[1] in ['.mp3', '.m4a', '.wav']:
|
||||||
sounds_list.append(name)
|
sounds_list.append(i)
|
||||||
else:
|
else:
|
||||||
sounds_list_cat = [os.path.join(dir_, i)]
|
sounds_list_cat = [os.path.join(dir_, i)]
|
||||||
for x in os.listdir(os.path.join(dir_, i)):
|
for x in os.listdir(os.path.join(dir_, i)):
|
||||||
|
|
Loading…
Add table
Reference in a new issue