Skip to content

Commit c346ef6

Browse files
committed
v3.0.2
1 parent 00a7ae2 commit c346ef6

File tree

7 files changed

+21
-15
lines changed

7 files changed

+21
-15
lines changed

MPDCtrl-Desktop/MPDCtrl/MPDCtrl.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<TargetFramework>net5.0-windows</TargetFramework>
66
<UseWPF>true</UseWPF>
77
<ApplicationIcon>MPDCtrl2.ico</ApplicationIcon>
8-
<Version>3.0.1</Version>
8+
<Version>3.0.2</Version>
99
<Authors>torum</Authors>
1010
<Company>Torum</Company>
1111
<Copyright>2021</Copyright>

MPDCtrl-Desktop/MPDCtrl/Models/MPC.cs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -803,11 +803,13 @@ private async void MpdIdle()
803803
DebugIdleOutput?.Invoke(this, "<<<<" + result.Trim().Replace("\n", "\n" + "<<<<") + "\n" + "\n");
804804

805805
if (isAck)
806+
{
806807
MpdAckError?.Invoke(this, ackText + " (@idle)");
807-
808-
// Parse & Raise event and MpdIdle();
809-
await ParseSubSystemsAndRaiseChangedEvent(result);
810-
808+
}
809+
else
810+
{
811+
await ParseSubSystemsAndRaiseChangedEvent(result);
812+
}
811813
}
812814
catch (System.IO.IOException e)
813815
{

MPDCtrl-Desktop/MPDCtrl/Properties/Resources.Designer.cs

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

MPDCtrl-Desktop/MPDCtrl/Properties/Resources.ja-JP.resx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ SOFTWARE.</value>
535535
<value>起動時にMPDサーバーの楽曲データベースを最新の状態に更新する (更新されるまで、しばらくかかる場合があります)</value>
536536
</data>
537537
<data name="Settings_Opts_UseReadPicture" xml:space="preserve">
538-
<value>'albumart'の代わりに'readpicture' コマンドを使用する。 (MPD プロトコルのバージョンが0.22.0以上の時のみ)</value>
538+
<value>"albumart"の代わりに"readpicture" コマンドを使用する。 (MPD プロトコルのバージョンが0.22.0以上の時のみ)</value>
539539
</data>
540540
<data name="Settings_ProfileDeleted" xml:space="preserve">
541541
<value>プロファイルが削除されました。</value>

MPDCtrl-Desktop/MPDCtrl/Properties/Resources.resx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ SOFTWARE.</value>
532532
<value>Update MPD Music Database on Startup. (It may take a while to update)</value>
533533
</data>
534534
<data name="Settings_Opts_UseReadPicture" xml:space="preserve">
535-
<value>Use 'readpicture' command instead of 'albumart'. (Applicable when MPD protocol version is 0.22.0 or up)</value>
535+
<value>Use "readpicture" command instead of "albumart". (applicable when MPD protocol version is 0.22.0 or up)</value>
536536
</data>
537537
<data name="Settings_ProfileDeleted" xml:space="preserve">
538538
<value>Profile Deleted</value>

MPDCtrl-Desktop/MPDCtrl/ViewModels/MainViewModel.cs

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,13 @@ namespace MPDCtrl.ViewModels
3131
{
3232
/// TODO:
3333
///
34-
/// v3.0.1.x 以降
34+
/// v3.0.2.x 以降
3535
///
3636
/// 「プレイリストの名前変更」をインラインで。
3737
/// キューの順番変更をドラッグアンドドロップで。
3838
///
39+
/// TreeViewのポップアップメニューでゴミが表示される件。
40+
///
3941
/// UI:左ペインの幅を覚える件。
4042
///
4143
/// Database: 設定画面でDBのupdateとrescan。
@@ -57,6 +59,7 @@ namespace MPDCtrl.ViewModels
5759

5860

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

98101
// Application version
99-
const string _appVer = "v3.0.1.0";
102+
const string _appVer = "v3.0.2.0";
100103

101104
public static string AppVer
102105
{
@@ -6625,7 +6628,8 @@ public async void ChangeConnectionProfileCommand_Execute(object obj)
66256628
}
66266629

66276630
// Save volume.
6628-
CurrentProfile.Volume = Convert.ToInt32(Volume);
6631+
if (CurrentProfile != null)
6632+
CurrentProfile.Volume = Convert.ToInt32(Volume);
66296633

66306634
// Validate Host input.
66316635
if (Host == "")
@@ -6747,9 +6751,9 @@ public async void ChangeConnectionProfileCommand_Execute(object obj)
67476751

67486752
Profiles.Add(prof);
67496753

6750-
// TODO:
6754+
// TODO: don't... before sending a password.
67516755
// 初回だからUpdateしておく?
6752-
await _mpc.MpdSendUpdate();
6756+
//await _mpc.MpdSendUpdate();
67536757
}
67546758
else
67556759
{

MPDCtrl-Desktop/MPDCtrl/Views/MainWindow.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3407,11 +3407,11 @@
34073407
<Label Style="{DynamicResource SectionTitle}" Content="{x:Static properties:Resources.DeveloperMode}" HorizontalAlignment="Left"/>
34083408
</Border>
34093409

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

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

0 commit comments

Comments
 (0)