mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-11-16 15:58:11 +00:00
History: don't reset date filtering when switching page
This commit is contained in:
parent
c7956f76ea
commit
14619b9437
1 changed files with 6 additions and 4 deletions
|
@ -1343,13 +1343,15 @@ Rectangle {
|
||||||
root.updateDisplay(root.txOffset, root.txMax);
|
root.updateDisplay(root.txOffset, root.txMax);
|
||||||
}
|
}
|
||||||
|
|
||||||
function reset() {
|
function reset(keepDate) {
|
||||||
root.txOffset = 0;
|
root.txOffset = 0;
|
||||||
root.txMax = 5;
|
root.txMax = 5;
|
||||||
|
|
||||||
if (typeof root.model !== 'undefined' && root.model != null) {
|
if (typeof root.model !== 'undefined' && root.model != null) {
|
||||||
|
if (!keepDate) {
|
||||||
root.model.dateFromFilter = "2014-04-18" // genesis block
|
root.model.dateFromFilter = "2014-04-18" // genesis block
|
||||||
root.model.dateToFilter = "9999-09-09" // fix before september 9999
|
root.model.dateToFilter = "9999-09-09" // fix before september 9999
|
||||||
|
}
|
||||||
// negative values disable filters here;
|
// negative values disable filters here;
|
||||||
root.model.amountFromFilter = -1;
|
root.model.amountFromFilter = -1;
|
||||||
root.model.amountToFilter = -1;
|
root.model.amountToFilter = -1;
|
||||||
|
@ -1704,6 +1706,6 @@ Rectangle {
|
||||||
|
|
||||||
function onPageClosed(){
|
function onPageClosed(){
|
||||||
root.initialized = false;
|
root.initialized = false;
|
||||||
root.reset();
|
root.reset(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue