Conflict filter checkbox state is now recorded.

For list filtering and scrolling. Also added an import for the checkbox,
it missing wasn't causing problems, but it should still be there.
This commit is contained in:
Oliver Hamlet
2014-11-15 15:16:00 +00:00
parent a909712373
commit b5b29c173c
2 changed files with 6 additions and 1 deletions
+5 -1
View File
@@ -19,6 +19,7 @@ loot-clear-metadata
<link rel="import" href="../bower_components/paper-menu-button/paper-menu-button.html">
<link rel="import" href="../bower_components/paper-item/paper-item.html">
<link rel="import" href="../bower_components/paper-dropdown/paper-dropdown.html">
<link rel="import" href="../bower_components/paper-checkbox/paper-checkbox.html">
<link rel="import" href="../bower_components/paper-icon-button/paper-icon-button.html">
<link rel="import" href="loot-plugin-editor.html">
@@ -143,7 +144,7 @@ loot-clear-metadata
<paper-dropdown class="dropdown" halign="right" opened="{{data.isMenuOpen}}">
<div>
<paper-item>
<paper-checkbox id="showOnlyConflicts" label="Show Only Conflicts" flex></paper-checkbox>
<paper-checkbox id="showOnlyConflicts" label="Show Only Conflicts" checked="{{data.isConflictFilterChecked}}" flex></paper-checkbox>
</paper-item>
<paper-item id="editMetadata">
<core-icon icon="create"></core-icon>
@@ -223,6 +224,9 @@ loot-clear-metadata
this.onCrcChange();
this.onTagsChange();
this.onMessagesChange();
/* Also set highlight if the conflict filter is active. */
this.classList.toggle('highlight', this.data.isConflictFilterChecked);
}
},
+1
View File
@@ -43,6 +43,7 @@ function Plugin(obj) {
this.id = this.name.replace(/\s+/g, '');
this.isMenuOpen = false;
this.isEditorOpen = false;
this.isConflictFilterChecked = false;
/* Converts between the LOOT metadata object for tags, and their
editor row representation. */