mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-10 00:07:52 -06:00
FIX: optimize style of media file panel
Change-Id: I2e5319538adae84b9b0348874d7b468b0dbc2db1
This commit is contained in:
parent
b21b4aec95
commit
6dc68c4c9e
7 changed files with 64 additions and 28 deletions
|
@ -490,6 +490,8 @@ size_t PrinterFileSystem::FindFile(size_t index, std::string const &name)
|
|||
void PrinterFileSystem::FileRemoved(size_t index, std::string const &name)
|
||||
{
|
||||
index = FindFile(index, name);
|
||||
if (index == size_t(-1))
|
||||
return;
|
||||
auto removeFromGroup = [](std::vector<size_t> &group, size_t index, int total) {
|
||||
for (auto iter = group.begin(); iter != group.end(); ++iter) {
|
||||
size_t index2 = -1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue