Skip to content

Commit 43a18dd

Browse files
committed
Update web code
1 parent 68e2350 commit 43a18dd

File tree

77 files changed

+77
-74
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+77
-74
lines changed

app/src/main/java/com/ismartcoding/plain/ui/models/FilesViewModel.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import com.ismartcoding.plain.features.media.FileMediaStoreHelper
2222
import com.ismartcoding.plain.preference.FilePathData
2323
import com.ismartcoding.plain.preference.LastFilePathPreference
2424
import com.ismartcoding.plain.preference.ShowHiddenFilesPreference
25+
import com.ismartcoding.plain.ui.helpers.DialogHelper
2526
import kotlinx.coroutines.Dispatchers
2627
import kotlinx.coroutines.flow.MutableStateFlow
2728
import kotlinx.coroutines.flow.StateFlow
@@ -255,13 +256,15 @@ class FilesViewModel : ISearchableViewModel<DFile>, ISelectableViewModel<DFile>,
255256

256257
fun deleteFiles(paths: Set<String>) {
257258
viewModelScope.launch {
259+
DialogHelper.showLoading()
258260
withIO {
259261
paths.forEach {
260262
File(it).deleteRecursively()
261263
}
262264

263265
MainApp.instance.scanFileByConnection(paths.toTypedArray())
264266
}
267+
DialogHelper.hideLoading()
265268

266269
_itemsFlow.update {
267270
it.toMutableStateList().apply {

app/src/main/resources/web/assets/AppsSidebar-BeRTxqvf.js renamed to app/src/main/resources/web/assets/AppsSidebar-BAU6RVEr.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/src/main/resources/web/assets/AppsView-Co6kI7Tr.js renamed to app/src/main/resources/web/assets/AppsView-dnFZoyaS.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/src/main/resources/web/assets/AudiosSidebar-BBUe_mR5.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/src/main/resources/web/assets/AudiosSidebar-ByK592KT.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)