From 0f5725438b1e9fd0afc02e4a074141a3d2b4eb06 Mon Sep 17 00:00:00 2001 From: Daniel M Date: Wed, 14 Feb 2024 12:38:19 -0500 Subject: [PATCH] test --- .../dsoftware/ghmanager/data/WorkflowRunSelectionContext.kt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/kotlin/com/dsoftware/ghmanager/data/WorkflowRunSelectionContext.kt b/src/main/kotlin/com/dsoftware/ghmanager/data/WorkflowRunSelectionContext.kt index b02edfb0..6e41e104 100644 --- a/src/main/kotlin/com/dsoftware/ghmanager/data/WorkflowRunSelectionContext.kt +++ b/src/main/kotlin/com/dsoftware/ghmanager/data/WorkflowRunSelectionContext.kt @@ -91,18 +91,16 @@ class WorkflowRunSelectionContext internal constructor( private fun setNewJobsProvider() { val oldValue = jobDataProviderLoadModel.value val newValue = jobsDataProvider - if (newValue != oldValue) { - jobSelectionHolder.selection = null - } if (oldValue != newValue && newValue != null && oldValue?.url() != newValue.url()) { jobDataProviderLoadModel.value = newValue + jobSelectionHolder.selection = null } } private fun setNewLogProvider() { val oldValue = jobLogDataProviderLoadModel.value val newValue = logDataProvider - if (oldValue != newValue && newValue != null && oldValue?.url() != newValue.url()) { + if (oldValue != newValue && oldValue?.url() != newValue?.url()) { jobLogDataProviderLoadModel.value = newValue } }