Release: 1.0.10

This commit is contained in:
Genteure 2018-04-14 12:04:04 +08:00
parent 476fbdcc27
commit a80dc3897f
2 changed files with 13 additions and 1 deletions

View File

@ -33,12 +33,24 @@ namespace BililiveRecorder.WPF
private void Save(object sender, RoutedEventArgs e)
{
if (!_CheckSavePath()) return;
DialogResult = true;
Close();
}
private bool _CheckSavePath()
{
if (string.IsNullOrWhiteSpace(Settings.SavePath))
{
MessageBox.Show("请设置一个录像保存路径", "保存路径不能为空", MessageBoxButton.OK, MessageBoxImage.Warning);
return false;
}
return true;
}
private void Cancel(object sender, RoutedEventArgs e)
{
if (!_CheckSavePath()) return;
Close();
}

View File

@ -10,7 +10,7 @@ $commit_message_version_regex="^Release: (\d+\.\d+\.\d+)$"
if ($env:APPVEYOR_REPO_BRANCH -eq "dev" -and $env:APPVEYOR_REPO_COMMIT_MESSAGE -cmatch $commit_message_version_regex)
{
git checkout dev
git checkout dev -q
$env:BILILIVERECORDER_RELEASE=$true
$env:p_version="$($Matches[1]).0"
Update-AppveyorBuild -Version "$env:p_version"