File tree 1 file changed +5
-3
lines changed
feature/root/src/main/java/ru/tech/imageresizershrinker/feature/root/presentation
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ package ru.tech.imageresizershrinker.feature.root.presentation
19
19
20
20
import androidx.compose.runtime.Composable
21
21
import androidx.compose.runtime.LaunchedEffect
22
- import androidx.compose.runtime.SideEffect
23
22
import androidx.compose.runtime.getValue
24
23
import androidx.compose.runtime.mutableIntStateOf
25
24
import androidx.compose.runtime.remember
@@ -52,8 +51,11 @@ fun RootContent(
52
51
randomEmojiKey++
53
52
}
54
53
55
- if (component.settingsState.appOpenCount >= 2 ) {
56
- SideEffect (effect = component::tryGetUpdate)
54
+ if (component.settingsState.appOpenCount >= 2 && component.settingsState.showUpdateDialogOnStartup) {
55
+ LaunchedEffect (Unit ) {
56
+ delay(500 )
57
+ component.tryGetUpdate()
58
+ }
57
59
}
58
60
59
61
ImageToolboxCompositionLocals (
You can’t perform that action at this time.
0 commit comments