Skip to content

Commit

Permalink
v3.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
torum committed Jan 12, 2021
1 parent 00a7ae2 commit c346ef6
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 15 deletions.
2 changes: 1 addition & 1 deletion MPDCtrl-Desktop/MPDCtrl/MPDCtrl.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<TargetFramework>net5.0-windows</TargetFramework>
<UseWPF>true</UseWPF>
<ApplicationIcon>MPDCtrl2.ico</ApplicationIcon>
<Version>3.0.1</Version>
<Version>3.0.2</Version>
<Authors>torum</Authors>
<Company>Torum</Company>
<Copyright>2021</Copyright>
Expand Down
10 changes: 6 additions & 4 deletions MPDCtrl-Desktop/MPDCtrl/Models/MPC.cs
Original file line number Diff line number Diff line change
Expand Up @@ -803,11 +803,13 @@ private async void MpdIdle()
DebugIdleOutput?.Invoke(this, "<<<<" + result.Trim().Replace("\n", "\n" + "<<<<") + "\n" + "\n");

if (isAck)
{
MpdAckError?.Invoke(this, ackText + " (@idle)");

// Parse & Raise event and MpdIdle();
await ParseSubSystemsAndRaiseChangedEvent(result);

}
else
{
await ParseSubSystemsAndRaiseChangedEvent(result);
}
}
catch (System.IO.IOException e)
{
Expand Down
2 changes: 1 addition & 1 deletion MPDCtrl-Desktop/MPDCtrl/Properties/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion MPDCtrl-Desktop/MPDCtrl/Properties/Resources.ja-JP.resx
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ SOFTWARE.</value>
<value>起動時にMPDサーバーの楽曲データベースを最新の状態に更新する (更新されるまで、しばらくかかる場合があります)</value>
</data>
<data name="Settings_Opts_UseReadPicture" xml:space="preserve">
<value>'albumart'の代わりに'readpicture' コマンドを使用する。 (MPD プロトコルのバージョンが0.22.0以上の時のみ)</value>
<value>"albumart"の代わりに"readpicture" コマンドを使用する。 (MPD プロトコルのバージョンが0.22.0以上の時のみ)</value>
</data>
<data name="Settings_ProfileDeleted" xml:space="preserve">
<value>プロファイルが削除されました。</value>
Expand Down
2 changes: 1 addition & 1 deletion MPDCtrl-Desktop/MPDCtrl/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ SOFTWARE.</value>
<value>Update MPD Music Database on Startup. (It may take a while to update)</value>
</data>
<data name="Settings_Opts_UseReadPicture" xml:space="preserve">
<value>Use 'readpicture' command instead of 'albumart'. (Applicable when MPD protocol version is 0.22.0 or up)</value>
<value>Use "readpicture" command instead of "albumart". (applicable when MPD protocol version is 0.22.0 or up)</value>
</data>
<data name="Settings_ProfileDeleted" xml:space="preserve">
<value>Profile Deleted</value>
Expand Down
14 changes: 9 additions & 5 deletions MPDCtrl-Desktop/MPDCtrl/ViewModels/MainViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,13 @@ namespace MPDCtrl.ViewModels
{
/// TODO:
///
/// v3.0.1.x 以降
/// v3.0.2.x 以降
///
/// 「プレイリストの名前変更」をインラインで。
/// キューの順番変更をドラッグアンドドロップで。
///
/// TreeViewのポップアップメニューでゴミが表示される件。
///
/// UI:左ペインの幅を覚える件。
///
/// Database: 設定画面でDBのupdateとrescan。
Expand All @@ -57,6 +59,7 @@ namespace MPDCtrl.ViewModels


/// 更新履歴:
/// v3.0.1.1 ReleaseビルドでDeveloperモードになってデバッグウィンドウが非表示になっていた。profile空の状態でテストしたらボロボロだった。
/// v3.0.1 MS Store 公開。
/// v3.0.0.6 パスワード変更ダイアログ消しちゃってた。ちょっとリファクタリング。playlistsに最終更新日を追加する為にString型からPlaylist型にした。TreeView menuのプレイリスト選択からキューに追加のコンテキストメニュー。ログの保存方法を少し変更。
/// v3.0.0.5 Search iconを復活させた。キューのMoveが動いていなかった。
Expand Down Expand Up @@ -96,7 +99,7 @@ public class MainViewModel : ViewModelBase
const string _appName = "MPDCtrl";

// Application version
const string _appVer = "v3.0.1.0";
const string _appVer = "v3.0.2.0";

public static string AppVer
{
Expand Down Expand Up @@ -6625,7 +6628,8 @@ public async void ChangeConnectionProfileCommand_Execute(object obj)
}

// Save volume.
CurrentProfile.Volume = Convert.ToInt32(Volume);
if (CurrentProfile != null)
CurrentProfile.Volume = Convert.ToInt32(Volume);

// Validate Host input.
if (Host == "")
Expand Down Expand Up @@ -6747,9 +6751,9 @@ public async void ChangeConnectionProfileCommand_Execute(object obj)

Profiles.Add(prof);

// TODO:
// TODO: don't... before sending a password.
// 初回だからUpdateしておく?
await _mpc.MpdSendUpdate();
//await _mpc.MpdSendUpdate();
}
else
{
Expand Down
4 changes: 2 additions & 2 deletions MPDCtrl-Desktop/MPDCtrl/Views/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -3407,11 +3407,11 @@
<Label Style="{DynamicResource SectionTitle}" Content="{x:Static properties:Resources.DeveloperMode}" HorizontalAlignment="Left"/>
</Border>

<Grid Grid.Row="7" HorizontalAlignment="Left" Margin="0 12 0 0" Visibility="{Binding DeveloperMode, Converter={StaticResource BooleanToVisibilityCollapsedConverter}}">
<Grid Grid.Row="7" HorizontalAlignment="Left" Margin="0 12 0 0">
<CheckBox Content="{x:Static properties:Resources.Settings_Opts_ShowDebugWidow}" Style="{DynamicResource DefaultCheckBoxStyle}" IsChecked="{Binding IsShowDebugWindow}" Margin="0 12 0 0"></CheckBox>
</Grid>

<Grid Grid.Row="8" HorizontalAlignment="Left" Margin="0 12 0 0" Visibility="{Binding DeveloperMode, Converter={StaticResource BooleanToVisibilityCollapsedConverter}}">
<Grid Grid.Row="8" HorizontalAlignment="Left" Margin="0 12 0 0">
<CheckBox Content="{x:Static properties:Resources.Settings_Opts_SaveLog}" Style="{DynamicResource DefaultCheckBoxStyle}" IsChecked="{Binding IsSaveLog}" Margin="0 12 0 0"></CheckBox>
</Grid>

Expand Down

0 comments on commit c346ef6

Please sign in to comment.