minor fixes
This commit is contained in:
@@ -169,7 +169,7 @@ public partial class MainForm : RadForm, IMainApi
|
||||
item.Text = string.Format(GeneralLangRes.Node_Install, infos.Version.ToString());
|
||||
else
|
||||
item.Text = infos.Version.ToString();
|
||||
|
||||
|
||||
item.SvgImage = AppGlobals.Symbols.GetSvgImage(infos.IsPublic ? AppSymbols.eye : AppSymbols.invisible, SymbolSize.Small);
|
||||
}
|
||||
|
||||
@@ -399,6 +399,11 @@ public partial class MainForm : RadForm, IMainApi
|
||||
}
|
||||
}
|
||||
|
||||
private void RadMenuItem_SaveWorkspace_Click(object sender, EventArgs e)
|
||||
{
|
||||
wsInfo?.Workspace.Save();
|
||||
}
|
||||
|
||||
private void RadMenuItem_ToolsItem_Click(object? sender, EventArgs e)
|
||||
{
|
||||
if (sender is RadMenuItem item && item.Tag is PluginFunction func)
|
||||
@@ -446,8 +451,25 @@ public partial class MainForm : RadForm, IMainApi
|
||||
var newValue = e.Row.Cells[e.Column.Name].Value;
|
||||
var colName = e.Column.Name;
|
||||
|
||||
if (newValue is string valueStr)
|
||||
if (newValue is bool valueBool)
|
||||
{
|
||||
switch (colName)
|
||||
{
|
||||
case "iszip":
|
||||
action.IsZip = valueBool;
|
||||
break;
|
||||
case "isextra":
|
||||
action.IsExtra = valueBool;
|
||||
break;
|
||||
case "isdir":
|
||||
if (uaction is not null)
|
||||
uaction.IsDirectory = valueBool;
|
||||
break;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
var valueStr = newValue as string ?? string.Empty;
|
||||
var valueNullStr = valueStr.Nullify();
|
||||
|
||||
switch (colName)
|
||||
@@ -477,7 +499,7 @@ public partial class MainForm : RadForm, IMainApi
|
||||
action.SourceName = valueNullStr;
|
||||
break;
|
||||
case "srcregex":
|
||||
action.SourceTag = valueNullStr;
|
||||
action.SourceRegex = valueNullStr;
|
||||
break;
|
||||
case "srctag":
|
||||
action.SourceTag = valueNullStr;
|
||||
@@ -499,22 +521,6 @@ public partial class MainForm : RadForm, IMainApi
|
||||
break;
|
||||
}
|
||||
}
|
||||
else if (newValue is bool valueBool)
|
||||
{
|
||||
switch (colName)
|
||||
{
|
||||
case "iszip":
|
||||
action.IsZip = valueBool;
|
||||
break;
|
||||
case "isextra":
|
||||
action.IsExtra = valueBool;
|
||||
break;
|
||||
case "isdir":
|
||||
if (uaction is not null)
|
||||
uaction.IsDirectory = valueBool;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void RadMenuItem_Updates_DropDownOpening(object sender, System.ComponentModel.CancelEventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user