- Moderator
- #1
This is for 0002253: MediaPortal does not start if "show last active module" would open a PIN protected folder - MediaPortal Bugtracker
I found the problem but, I have no solution yet then, if you have an idea...
It appears when showlastactivemodule and RememberLastFolder are enabled in a pincode protected.
In this case, in GUIVideoFiles, we go in LoadDirectory(string newFolderName) method. (No GUI is displayed)
Then, we want to fill the itemlist :
Note : for testing I replaced by :
List<GUIListItem> itemlist = _virtualDirectory.GetDirectoryUnProtectedExt(_currentFolder, true);
and it works but, this is not the solution because no pin protect anymore.
Then, in VirtualDirectory.cs, in GetDirectoryExt(string strDir) method, because folder is pin protected we do :
and, the process is locked on the last line because, we want to display the VirtuaKeyboard with No GUI is displayed before.
It's up to you to see how you would prefer to fix it.
I found the problem but, I have no solution yet then, if you have an idea...
It appears when showlastactivemodule and RememberLastFolder are enabled in a pincode protected.
In this case, in GUIVideoFiles, we go in LoadDirectory(string newFolderName) method. (No GUI is displayed)
Then, we want to fill the itemlist :
Code:
// here we get ALL files in every subdir, look for folderthumbs, defaultthumbs, etc
List<GUIListItem> itemlist = _virtualDirectory.GetDirectoryExt(_currentFolder);
List<GUIListItem> itemlist = _virtualDirectory.GetDirectoryUnProtectedExt(_currentFolder, true);
and it works but, this is not the solution because no pin protect anymore.
Then, in VirtualDirectory.cs, in GetDirectoryExt(string strDir) method, because folder is pin protected we do :
Code:
if (IsProtectedShare(strDir, out iPincodeCorrect))
{
#region Pin protected
bool retry = true;
{
while (retry)
{
//no, then ask user to enter the pincode
GUIMessage msgGetPassword = new GUIMessage(GUIMessage.MessageType.GUI_MSG_GET_PASSWORD, 0, 0, 0, 0, 0, 0);
GUIWindowManager.SendMessage(msgGetPassword);
It's up to you to see how you would prefer to fix it.