fix openblive admin not able qiege

This commit is contained in:
aynakeya
2024-08-07 21:01:30 +08:00
parent 9f8b103be1
commit 156901f14c
7 changed files with 16 additions and 4 deletions

View File

@@ -82,5 +82,12 @@ func Initialize() {
MainWindow.SetFixedSize(true)
if config.General.ShowSystemTray {
setupSysTray()
} else {
MainWindow.SetCloseIntercept(
func() {
// save twice i don;t care
_ = config.SaveToConfigFile(config.ConfigPath)
MainWindow.Close()
})
}
}

View File

@@ -1,6 +1,7 @@
package gui
import (
"AynaLivePlayer/pkg/config"
"AynaLivePlayer/pkg/i18n"
"AynaLivePlayer/resource"
"fyne.io/fyne/v2"
@@ -17,6 +18,7 @@ func setupSysTray() {
desk.SetSystemTrayIcon(resource.ImageIcon)
}
MainWindow.SetCloseIntercept(func() {
_ = config.SaveToConfigFile(config.ConfigPath)
MainWindow.Hide()
})
}

View File

@@ -176,7 +176,7 @@ func registerCmdHandler() {
log.Infof("[MPV Player] Play media %s", mediaInfo.Title)
mediaUrls, err := miaosic.GetMediaUrl(mediaInfo.Meta, miaosic.QualityAny)
if err != nil || len(mediaUrls) == 0 {
log.Warn("[MPV PlayControl] get media url failed", err)
log.Warn("[MPV PlayControl] get media url failed ", mediaInfo.Meta.ID(), err)
global.EventManager.CallA(
events.PlayerPlayErrorUpdate,
events.PlayerPlayErrorUpdateEvent{

View File

@@ -74,7 +74,7 @@ func (d *Qiege) handleMessage(event *event.Event) {
if len(msgs) < 1 || msgs[0] != d.CustomCMD {
return
}
d.log.Infof("recieve diange command")
d.log.Infof("recieve qiege command")
if d.UserPermission {
if d.currentUid == message.User.Uid {
global.EventManager.CallA(

View File

@@ -12,9 +12,12 @@
- 歌词event发送全部歌词前端处理不同版本
- 网页输出重写,使用网页版本,不绑定在点歌机内(点歌机不需要启动网页服务)
- optimize local music
- 从搜索里添加的歌不能被切
----
Finished
- 2024.08.06 : 修复使用身份码连接的时候房管无法切歌的问题
- 2024.07.25 : 或许修复配置无法正确保存的问题
- 2024.07.20 : fyne升级字体修改为自动加载系统字体, 设置中课设置mpv是否现实歌曲封面
- 2024.06.23@1.0.8 : 歌词字符集自动检测解码,单个点歌数上线
- 2024.06.22 : 支持多个点歌命令, kugou源