Skip to content

Commit

Permalink
volume controller adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
gogodr committed Aug 4, 2023
1 parent b583a61 commit 203ba3b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
7 changes: 2 additions & 5 deletions index.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
from shutil import rmtree
import modules.single_instance
import faulthandler
from datetime import datetime
import sys
import time
import os
import traceback
import ctypes
from raven import Client

from PySide6.QtWidgets import QApplication, QSystemTrayIcon, QMenu, QMessageBox
from PySide6.QtWidgets import QApplication, QSystemTrayIcon, QMenu
from PySide6.QtGui import QIcon
from PySide6.QtCore import Signal
from thefuzz import fuzz
Expand All @@ -24,7 +21,7 @@
from modules.db import MarketDb
from modules.messagebox import MessageBoxHandler
from modules.scan import scan_file
from modules.sound import VolumeController, playCheck, playError, playSuccess
from modules.sound import playCheck, playError, playSuccess

from ui.config.config import LostArkMarketWatcherConfig
from ui.log.log import LostArkMarketWatcherLog
Expand Down
2 changes: 1 addition & 1 deletion modules/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@


class Config(metaclass=Singleton):
version = "0.8.18.4"
version = "0.8.18.5"
region: str
game_region: str
debug = False
Expand Down
5 changes: 4 additions & 1 deletion ui/config/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ def audio_toggle(self, value):
self.slVolume.setVisible(1)

def update_volume(self, value):
VolumeController().setVolume(value / 100)
try:
VolumeController().setVolume(value / 100)
except Exception as ex:
AppLogger().exception(ex)

def screenshot_folder_toggle(self, value):
if value == 0:
Expand Down

0 comments on commit 203ba3b

Please sign in to comment.