Skip to content

Commit

Permalink
Change label for loading instances based on whether group is empty
Browse files Browse the repository at this point in the history
Change-Id: I69e6a30595f56ed669aea197f2e66329ac0ba5ef
  • Loading branch information
Johannes Passing authored and jpassing committed Nov 11, 2019
1 parent 6ad1c66 commit 0eb55be
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Google.Solutions.CloudIap.Plugin/Gui/PluginEventHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,10 @@ public void OnContextMenu(System.Windows.Forms.ContextMenuStrip contextMenuStrip
if (node is FileGroup fileGroup)
{
ToolStripMenuItem loadServers = new ToolStripMenuItem(
$"Add GCE &instances from {node.Text}",
string.Format(
"{0} GCE &instances from {1}",
fileGroup.Nodes.Count == 0 ? "Add" : "Refresh",
node.Text),
Resources.DownloadWebSetting.WithMagentaAsTransparent());
loadServers.Click += (sender, args) => this.OnLoadServersClick(fileGroup);

Expand Down

0 comments on commit 0eb55be

Please sign in to comment.