File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -230,10 +230,11 @@ private static async Task RunUpdateLogic()
230230 WriteRegistryToXML ( ) ;
231231 }
232232
233- WriteXMLToRegistry ( currentPowerLineStatus ) ;
234-
233+ //This NEEDS to come before (XML -> Registry) and after (Registry -> XML) (XML -> Registry depends on this)
235234 UpdateSeenInRegistryStatuses ( ) ; //sets the SeenInRegistry entry accordingly
236235
236+ WriteXMLToRegistry ( currentPowerLineStatus ) ;
237+
237238 AppEntrySaveHandler appEntrySaveHandler = await appEntryLibrarian . Borrow ( ) ;
238239 Task swaps = BeginFileSwapLogic ( currentPowerLineStatus , appEntrySaveHandler . CurrentAppEntries ) ;
239240 appEntryLibrarian . Return ( appEntrySaveHandler ) ;
@@ -491,7 +492,7 @@ internal static void WriteXMLToRegistry(PowerLineStatus powerLineStatus)
491492 foreach ( AppEntry appEntry in appEntries )
492493 {
493494
494- if ( appEntry . PendingAddToRegistry )
495+ if ( appEntry . PendingAddToRegistry && ! appEntry . SeenInRegistry )
495496 {
496497
497498 Logger . inst . Log ( $ "Pending registry add detected: { appEntry . AppPath } ") ;
You can’t perform that action at this time.
0 commit comments