- FIX: File browser "This PC" section empy
- FIX: File browser "Path incorrect" error on multiple folders selected - FIX: File browser allowed addition of incorrect file share paths (will now throw an error when the path does not exist) - Changed: Some changes to the UI for the file browser (no more dropdown select for "This PC". Instead a "localhost" entry is now added to the tree selection
This commit is contained in:
@@ -22,8 +22,19 @@ namespace Permissions
|
||||
{
|
||||
InitializeComponent();
|
||||
Error_label.Visible = false;
|
||||
startFrom_select.SelectedIndex = 0;
|
||||
makeDocumentTree();
|
||||
|
||||
path_panel.Visible = true;
|
||||
|
||||
string[] drives = System.IO.Directory.GetLogicalDrives(); // Get local drives
|
||||
foreach (string str in drives)
|
||||
{
|
||||
string strShare = "\\\\localhost\\" + str.Replace(":\\", "$\\"); ;
|
||||
|
||||
basePath = strShare;
|
||||
makeDocumentTree();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
private void cancel_bttn_Click(object sender, EventArgs e)
|
||||
@@ -230,13 +241,19 @@ namespace Permissions
|
||||
|
||||
private void startFrom_select_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (startFrom_select.SelectedIndex == 1) { path_panel.Visible = true; } else { path_panel.Visible = false; makeDocumentTree(); };
|
||||
|
||||
}
|
||||
|
||||
private void refresh_button_Click(object sender, EventArgs e)
|
||||
{
|
||||
basePath = startFrom_textbox.Text;
|
||||
makeDocumentTree();
|
||||
if (!Directory.Exists(startFrom_textbox.Text))
|
||||
{ Error_label.Text = "Invalid path: " + startFrom_textbox.Text; Error_label.Visible = true; }
|
||||
else
|
||||
{
|
||||
Error_label.Text = ""; Error_label.Visible = false;
|
||||
basePath = startFrom_textbox.Text;
|
||||
makeDocumentTree();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user