20240815131100
This commit is contained in:
parent
8a9f786107
commit
9495f132bd
|
@ -28,5 +28,5 @@ TASKKILL /F /IM BSBLEFuncM.exe /T 2> nul
|
||||||
TASKKILL /F /IM "BlueSoleil iSend.exe" /T 2> nul
|
TASKKILL /F /IM "BlueSoleil iSend.exe" /T 2> nul
|
||||||
TASKKILL /F /IM BlueSoleil.exe /T 2> nul
|
TASKKILL /F /IM BlueSoleil.exe /T 2> nul
|
||||||
TASKKILL /F /IM Bluetooth* /T 2> nul
|
TASKKILL /F /IM Bluetooth* /T 2> nul
|
||||||
|
cd /
|
||||||
start "BT Service" "C:\Program Files (x86)\IVT Corporation\BlueSoleil\BtTray.exe"
|
start "BT Service" "C:\Program Files (x86)\IVT Corporation\BlueSoleil\BtTray.exe"
|
||||||
|
|
8
main.py
8
main.py
|
@ -612,7 +612,7 @@ class MainWindow(QMainWindow):
|
||||||
def __init__(self, logger: Logger):
|
def __init__(self, logger: Logger):
|
||||||
super().__init__()
|
super().__init__()
|
||||||
self.app_name = '蓝牙音频连接'
|
self.app_name = '蓝牙音频连接'
|
||||||
self.app_version = ('1.0.2', '20240810', 'zhaoyafan', 'zhaoyafan@foxmail.com', 'https://www.fanscloud.net/')
|
self.app_version = ('1.0.3', '20240815', 'zhaoyafan', 'zhaoyafan@foxmail.com', 'https://www.fanscloud.net/')
|
||||||
self.app_text = {'search': '正在搜索', 'connecting': '连接中...'}
|
self.app_text = {'search': '正在搜索', 'connecting': '连接中...'}
|
||||||
self.logger = logger
|
self.logger = logger
|
||||||
self.bluesoleil = None
|
self.bluesoleil = None
|
||||||
|
@ -698,11 +698,13 @@ class MainWindow(QMainWindow):
|
||||||
try:
|
try:
|
||||||
self.bluesoleil = BtSdk()
|
self.bluesoleil = BtSdk()
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
QMessageBox.critical(self, '错误', '关键程序“千月(bluesoleil)”未安装,请安装后再试')
|
QMessageBox.critical(self, '错误', '“千月(bluesoleil)”未安装,请安装后再试。')
|
||||||
self.close()
|
self.close()
|
||||||
|
sys.exit(1)
|
||||||
except Exception:
|
except Exception:
|
||||||
QMessageBox.critical(self, '警告', '蓝牙尚未启动')
|
QMessageBox.critical(self, '警告', '蓝牙未启用或未连接蓝牙适配器')
|
||||||
self.close()
|
self.close()
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
def restartServActionFunction(self):
|
def restartServActionFunction(self):
|
||||||
if (os.path.exists('C:\\Program Files (x86)\\IVT Corporation\\BlueSoleil\\BtTray.exe')) == 1:
|
if (os.path.exists('C:\\Program Files (x86)\\IVT Corporation\\BlueSoleil\\BtTray.exe')) == 1:
|
||||||
|
|
Loading…
Reference in New Issue