|
|
|
@ -93,6 +93,7 @@ class CacheActivity : VMBaseActivity<ActivityCacheBookBinding, CacheViewModel>() |
|
|
|
|
menu.findItem(R.id.menu_enable_replace)?.isChecked = AppConfig.exportUseReplace |
|
|
|
|
menu.findItem(R.id.menu_export_no_chapter_name)?.isChecked = AppConfig.exportNoChapterName |
|
|
|
|
menu.findItem(R.id.menu_export_web_dav)?.isChecked = AppConfig.exportToWebDav |
|
|
|
|
menu.findItem(R.id.menu_export_pics_file)?.isChecked = AppConfig.exportPictureFile |
|
|
|
|
menu.findItem(R.id.menu_export_type)?.title = |
|
|
|
|
"${getString(R.string.export_type)}(${getTypeName()})" |
|
|
|
|
menu.findItem(R.id.menu_export_charset)?.title = |
|
|
|
@ -129,6 +130,7 @@ class CacheActivity : VMBaseActivity<ActivityCacheBookBinding, CacheViewModel>() |
|
|
|
|
R.id.menu_enable_replace -> AppConfig.exportUseReplace = !item.isChecked |
|
|
|
|
R.id.menu_export_no_chapter_name -> AppConfig.exportNoChapterName = !item.isChecked |
|
|
|
|
R.id.menu_export_web_dav -> AppConfig.exportToWebDav = !item.isChecked |
|
|
|
|
R.id.menu_export_pics_file -> AppConfig.exportPictureFile = !item.isChecked |
|
|
|
|
R.id.menu_export_folder -> { |
|
|
|
|
selectExportFolder(-1) |
|
|
|
|
} |
|
|
|
|