我是个傻子。。这破问题调试了一个小时
This commit is contained in:
Genteure 2018-03-24 04:58:37 +08:00
parent 1087fb5086
commit f43defb2f7

View File

@ -38,7 +38,7 @@ namespace BililiveRecorder.Core
public RecordedRoom(Settings settings, int roomid)
{
_settings = settings;
_settings.PropertyChanged += _settings_PropertyChanged;
_settings_Setup();
Roomid = roomid;
@ -64,6 +64,13 @@ namespace BililiveRecorder.Core
Status = RecordStatus.Idle;
}
private void _settings_Setup()
{
_settings.PropertyChanged += _settings_PropertyChanged;
Processor.Clip_Future = _settings.Clip_Future;
Processor.Clip_Past = _settings.Clip_Past;
}
private void _settings_PropertyChanged(object sender, PropertyChangedEventArgs e)
{
if (e.PropertyName == nameof(_settings.Clip_Past))