Browse Source

Move Module Browser items around

tags/v0.6.0
Andrew Belt 7 years ago
parent
commit
0b81d72e3c
1 changed files with 7 additions and 5 deletions
  1. +7
    -5
      src/app/ModuleBrowser.cpp

+ 7
- 5
src/app/ModuleBrowser.cpp View File

@@ -365,6 +365,12 @@ struct ModuleBrowser : VirtualWidget {
moduleList->clearChildren(); moduleList->clearChildren();
moduleList->selected = 0; moduleList->selected = 0;


// Clear filter
if (!(sAuthorFilter.empty() && sTagFilter == NO_TAG)) {
ClearFilterItem *item = new ClearFilterItem();
moduleList->addChild(item);
}

// Favorites // Favorites
if (!sFavoriteModels.empty()) { if (!sFavoriteModels.empty()) {
SeparatorItem *item = new SeparatorItem(); SeparatorItem *item = new SeparatorItem();
@@ -379,7 +385,7 @@ struct ModuleBrowser : VirtualWidget {
} }
} }


// Authors
// Author/tag subpage
if (sAuthorFilter.empty() && sTagFilter == NO_TAG) { if (sAuthorFilter.empty() && sTagFilter == NO_TAG) {
// Author items // Author items
{ {
@@ -408,10 +414,6 @@ struct ModuleBrowser : VirtualWidget {
} }
} }
} }
else {
ClearFilterItem *item = new ClearFilterItem();
moduleList->addChild(item);
}


// Models // Models
if (!sAuthorFilter.empty() || sTagFilter != NO_TAG || !search.empty()) { if (!sAuthorFilter.empty() || sTagFilter != NO_TAG || !search.empty()) {


Loading…
Cancel
Save