Navigation Menu

Skip to content

Commit

Permalink
Disabling paste section menu items when no saved section is selected.
Browse files Browse the repository at this point in the history
  • Loading branch information
MainMemory committed Feb 11, 2016
1 parent 8a18fd0 commit 2482a00
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions SonLVL/MainForm.cs
Expand Up @@ -2963,6 +2963,7 @@ private void backgroundPanel_MouseDown(object sender, MouseEventArgs e)
DrawLevel();
}
pasteOnceToolStripMenuItem.Enabled = pasteRepeatingToolStripMenuItem.Enabled = Clipboard.ContainsData(typeof(LayoutSection).AssemblyQualifiedName);
pasteSectionOnceToolStripMenuItem.Enabled = pasteSectionRepeatingToolStripMenuItem.Enabled = layoutSectionListBox.SelectedIndex != -1;
layoutContextMenuStrip.Show(backgroundPanel, e.Location);
break;
}
Expand Down

0 comments on commit 2482a00

Please sign in to comment.