File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
mvvm4fx-core/src/main/java/com/techsenger/mvvm4fx/core Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -43,24 +43,24 @@ public AbstractComponentViewModel() {
4343 var policy = this .descriptor .getHistoryPolicy ();
4444 if (this .descriptor .getState () == ComponentState .CONSTRUCTED ) {
4545 logger .debug ("{} History policy on constucting: {}" , this .descriptor .getLogPrefix (), policy );
46- ComponentHistory history = null ;
46+ ComponentHistory localHistory = null ;
4747 if (policy != NONE ) {
48- history = getOrRequestHistory ();
49- if (history .isFresh ()) {
48+ localHistory = getOrRequestHistory ();
49+ if (localHistory .isFresh ()) {
5050 logger .debug ("{} History is fresh. Skipping restoration" , this .descriptor .getLogPrefix ());
5151 } else {
5252 switch (policy ) {
5353 case DATA :
54- history .restoreData (this );
54+ localHistory .restoreData (this );
5555 postHistoryRestore ();
5656 break ;
5757 case APPEARANCE :
58- history .restoreAppearance (this );
58+ localHistory .restoreAppearance (this );
5959 postHistoryRestore ();
6060 break ;
6161 case ALL :
62- history .restoreData (this );
63- history .restoreAppearance (this );
62+ localHistory .restoreData (this );
63+ localHistory .restoreAppearance (this );
6464 postHistoryRestore ();
6565 break ;
6666 default :
You can’t perform that action at this time.
0 commit comments