Skip to content

[BUG]强迫所有简中用户使用gitee源且无法修改(4年前就存在的bug?附用户手动临时解决措施。以及此项目是否abandoned?) #836

@theFreeWall

Description

@theFreeWall

即使设置页面更新源选中了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

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导致的可能性似乎太小了?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions