mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 08:47:52 -06:00
Copy and paste -> Disabled paste of volumes when nothing is selected and fixed enabling/disabling of paste item in toolbar and edit menu
This commit is contained in:
parent
4718c839f6
commit
4046d517c9
4 changed files with 36 additions and 27 deletions
|
@ -1067,15 +1067,21 @@ void Selection::paste_from_clipboard()
|
|||
if (!m_valid || m_clipboard.is_empty())
|
||||
return;
|
||||
|
||||
if ((m_clipboard.get_mode() == Volume) && is_from_single_instance())
|
||||
paste_volumes_from_clipboard();
|
||||
else
|
||||
paste_objects_from_clipboard();
|
||||
}
|
||||
switch (m_clipboard.get_mode())
|
||||
{
|
||||
case Volume:
|
||||
{
|
||||
if (is_from_single_instance())
|
||||
paste_volumes_from_clipboard();
|
||||
|
||||
bool Selection::is_clipboard_empty()
|
||||
{
|
||||
return m_clipboard.is_empty();
|
||||
break;
|
||||
}
|
||||
case Instance:
|
||||
{
|
||||
paste_objects_from_clipboard();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void Selection::update_valid()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue