refactor: fix more warnings

This commit is contained in:
Ax333l 2024-04-05 20:04:27 +02:00
parent 2a1445d61f
commit ac0a036035
No known key found for this signature in database
GPG Key ID: D2B4D85271127D23
3 changed files with 5 additions and 5 deletions

View File

@ -37,12 +37,12 @@ fun ImportBundleDialog(
onDismissRequest: () -> Unit,
onRemoteSubmit: (String, String, Boolean) -> Unit,
onLocalSubmit: (String, Uri, Uri?) -> Unit,
bundleType: BundleType
initialBundleType: BundleType
) {
var name by rememberSaveable { mutableStateOf("") }
var remoteUrl by rememberSaveable { mutableStateOf("") }
var autoUpdate by rememberSaveable { mutableStateOf(true) }
var bundleType by rememberSaveable { mutableStateOf(bundleType) }
var bundleType by rememberSaveable { mutableStateOf(initialBundleType) }
var patchBundle by rememberSaveable { mutableStateOf<Uri?>(null) }
var integrations by rememberSaveable { mutableStateOf<Uri?>(null) }

View File

@ -115,7 +115,7 @@ fun DashboardScreen(
dismiss()
vm.createRemoteSource(name, url, autoUpdate)
},
bundleType = it
initialBundleType = it
)
}

View File

@ -26,7 +26,7 @@
<string name="bundle_missing">Missing</string>
<string name="bundle_error">Error</string>
<string name="selected_app_meta">%1s • %2d available patches</string>
<string name="selected_app_meta">%1$s • %2$d available patches</string>
<string name="patch_item_description">Start patching the application</string>
<string name="patch_selector_item">Patch selection and options</string>
@ -337,4 +337,4 @@
<string name="local_bundle_description">Import local files from your storage, does not automatically update</string>
<string name="remote_bundle_description">Import remote files from a URL, can automatically update</string>
<string name="recommended">Recommended</string>
</resources>
</resources>