-
Notifications
You must be signed in to change notification settings - Fork 479
Description
即使设置页面更新源选中了github,但是重启程序后还会自动变为gitee。
看了下源码,发现设置页面设置后config未能成功写入update_source = 0(一开始config中就没有此行)
需要自己手动添加此选项update_source = 0
https://github.com/zhongyang219/MusicPlayer2/blob/976468d73ed019cb4260148e9e812ec2051c2bd0/MusicPlayer2/UpdateHelper.cpp
https://github.com/zhongyang219/MusicPlayer2/blob/976468d73ed019cb4260148e9e812ec2051c2bd0/MusicPlayer2/MusicPlayerDlg.cpp
MusicPlayer2/MusicPlayer2/CommonData.h
Line 295 in 976468d
| int update_source{}; //更新源。0: GitHub; 1: Gitee |
bool is_zh_cn = theApp.m_str_table.IsSimplifiedChinese(); //当前语言是否为简体中文 theApp.m_general_setting_data.update_source = ini.GetInt(L"general", L"update_source", is_zh_cn ? 1 : 0); //如果当前语言为简体,则默认更新源为Gitee,否则为GitHub
发现此问题十分熟悉,过了一会想起来在另一个项目遇到过同样的问题,才发现是同一作者
https://github.com/zhongyang219/TrafficMonitor
早在3年前就有人反馈,相关issue:
zhongyang219/TrafficMonitor#1561
zhongyang219/TrafficMonitor#1119
当初在解决TrafficMonitor,因为发现已经有人提了issue没人回答,且bug优先级较低,就没再单独开一个issue,只是以为是偶然的一个小bug。
但是两个程序同时有着相同的问题,因为是bug导致的可能性似乎太小了?