Skip to content

Commit

Permalink
v2.0.4 Microsoft Store release
Browse files Browse the repository at this point in the history
  • Loading branch information
torum committed Dec 13, 2020
1 parent 13631c8 commit a0b9736
Show file tree
Hide file tree
Showing 14 changed files with 43 additions and 14 deletions.
4 changes: 2 additions & 2 deletions MPDCtrl2/MPDCtrl.sln
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ Global
{72A81192-4291-42D0-ABBD-9B3FC27B0B54}.Debug|Any CPU.Build.0 = Debug|Any CPU
{72A81192-4291-42D0-ABBD-9B3FC27B0B54}.Debug|x64.ActiveCfg = Debug|Any CPU
{72A81192-4291-42D0-ABBD-9B3FC27B0B54}.Debug|x64.Build.0 = Debug|Any CPU
{72A81192-4291-42D0-ABBD-9B3FC27B0B54}.Debug|x86.ActiveCfg = Debug|Any CPU
{72A81192-4291-42D0-ABBD-9B3FC27B0B54}.Debug|x86.Build.0 = Debug|Any CPU
{72A81192-4291-42D0-ABBD-9B3FC27B0B54}.Debug|x86.ActiveCfg = Release|Any CPU
{72A81192-4291-42D0-ABBD-9B3FC27B0B54}.Debug|x86.Build.0 = Release|Any CPU
{72A81192-4291-42D0-ABBD-9B3FC27B0B54}.Release|Any CPU.ActiveCfg = Release|Any CPU
{72A81192-4291-42D0-ABBD-9B3FC27B0B54}.Release|Any CPU.Build.0 = Release|Any CPU
{72A81192-4291-42D0-ABBD-9B3FC27B0B54}.Release|x64.ActiveCfg = Release|Any CPU
Expand Down
2 changes: 1 addition & 1 deletion MPDCtrl2/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>2.0.3</Version>
<Version>2.0.4</Version>
<Authors>torum</Authors>
<Company>Torum</Company>
<Copyright>2020</Copyright>
Expand Down
2 changes: 1 addition & 1 deletion MPDCtrl2/MPDCtrl/Models/MPC.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1400,7 +1400,7 @@ public void MpdSearch(string queryTag, string queryShiki, string queryValue)
}
else
{
mpdCommand = "search \"" + expression + "\"\n";
mpdCommand = "search \"(" + expression + ")\"\n";
}

_asyncClient.Send("noidle" + "\n");
Expand Down
45 changes: 37 additions & 8 deletions MPDCtrl2/MPDCtrl/ViewModels/MainViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@ namespace MPDCtrl.ViewModels
{
/// TODO:
///
/// ルートディレクトリにファイルがある時のテスト。というか色々テスト。検索は古いMPDでも大丈夫かテスト。
///
/// v2.0.4
/// v2.0.5
///
/// Ctrl+F検索とFilesでプレイリストに追加できるように。"Save Selected to" context menu.
/// 「プレイリストに追加」をコンテキストメニューで。
Expand All @@ -54,6 +53,8 @@ namespace MPDCtrl.ViewModels
/// レイアウト大改造? 3ペイン(上キューと下に2ペイン) + (Treeviewでプレイリストとディレクトリ纏める??)

/// 更新履歴:
/// v2.0.4 store公開。
/// v2.0.3.4 ルートディレクトリにファイルがある時のテスト。
/// v2.0.3.3 Search and filter is done.
/// v2.0.3.2 Clearコマンドを送る前にQueueをクリアしておくようにして高速化。プレイリストとFilesはダブルクリック無効にした(なんか混乱するから)。 KeyboardNavigation.TabNavigation="Cycle"の設定。
/// v2.0.3.1 検索とブラウズ途中。
Expand Down Expand Up @@ -102,7 +103,7 @@ public class MainViewModel : ViewModelBase
const string _appName = "MPDCtrl";

// Application version
const string _appVer = "v2.0.3.3";
const string _appVer = "v2.0.4";

public string AppVer
{
Expand Down Expand Up @@ -1674,6 +1675,9 @@ public NodeDirectory SelectedNode
_selectedNode = value;
NotifyPropertyChanged(nameof(SelectedNode));

// TODO: 絞り込みモードか、マッチしたフォルダ内だけかの切り替え
bool filteringMode = true;

// Treeview で選択ノードが変更されたのでListview でフィルターを掛ける。
var collectionView = CollectionViewSource.GetDefaultView(MusicEntries);
collectionView.Filter = x =>
Expand All @@ -1682,13 +1686,38 @@ public NodeDirectory SelectedNode

string path = entry.FileUri.LocalPath; //person.FileUri.AbsoluteUri;
string filename = System.IO.Path.GetFileName(path);//System.IO.Path.GetFileName(uri.LocalPath);
path = path.Replace(("/"+ filename), "");

// マッチしたフォルダ内だけ
//return (path == _selectedNode.DireUri.LocalPath );
if (_selectedNode.DireUri.LocalPath == "/")
{
if (filteringMode)
{
// 絞り込みモード
return true;
}
else
{
// マッチしたフォルダ内だけ
path = path.Replace("/", "");
return (path == filename);
}
}
else
{
path = path.Replace(("/" + filename), "");

if (filteringMode)
{
// 絞り込みモード
return (path.StartsWith(_selectedNode.DireUri.LocalPath));
}
else
{
// マッチしたフォルダ内だけ
return (path == _selectedNode.DireUri.LocalPath);
}
}


// 絞り込みモード
return (path.StartsWith(_selectedNode.DireUri.LocalPath));
};

collectionView.Refresh();
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ MPDCtrl is a Windows desktop client app for [MPD (Music player daemon)](http://w

### MPDCtrl version 2.x

![MPDCtrl](https://github.com/torum/MPDCtrl/blob/master/images/screenshots/v2/Main_En.png?raw=true)
![MPDCtrl](https://github.com/torum/MPDCtrl/blob/master/images/screenshots/v2/Main.png?raw=true)

### MPDCtrl version 1.x

Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ MPDCtrl is a Windows desktop client app for [MPD (Music player daemon)](http://w

### MPDCtrl version 2.x

![MPDCtrl](https://github.com/torum/MPDCtrl/blob/master/images/screenshots/v2/Main_En.png?raw=true)
![MPDCtrl](https://github.com/torum/MPDCtrl/blob/master/images/screenshots/v2/Main.png?raw=true)

### MPDCtrl version 1.x

Expand Down
Binary file added images/screenshots/v2/1_Main.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/screenshots/v2/2_Search.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/screenshots/v2/3_Directory.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/screenshots/v2/Main.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed images/screenshots/v2/Main_En.png
Binary file not shown.
Binary file removed images/screenshots/v2/Main_Ja.png
Binary file not shown.
Binary file removed images/screenshots/v2/Setting_En.png
Binary file not shown.
Binary file removed images/screenshots/v2/Setting_Ja.png
Binary file not shown.

0 comments on commit a0b9736

Please sign in to comment.