mirror of
https://github.com/amir1376/ab-download-manager.git
synced 2025-02-20 11:43:24 +08:00
change default download folder
This commit is contained in:
parent
2e614a8b3a
commit
9f0f532c5c
@ -6,6 +6,8 @@
|
||||
|
||||
### Changed
|
||||
|
||||
- Change default download folder
|
||||
|
||||
### Deprecated
|
||||
|
||||
### Removed
|
||||
|
@ -22,8 +22,9 @@ data class AppSettingsModel(
|
||||
val speedLimit: Long = 0,
|
||||
val autoStartOnBoot: Boolean = true,
|
||||
val notificationSound: Boolean = true,
|
||||
val defaultDownloadFolder: String = File(System.getProperty("user.home")).resolve("Downloads/AB"
|
||||
).canonicalFile.absolutePath,
|
||||
val defaultDownloadFolder: String = File(System.getProperty("user.home"))
|
||||
.resolve("Downloads/ABDM")
|
||||
.canonicalFile.absolutePath,
|
||||
val browserIntegrationEnabled: Boolean = true,
|
||||
val browserIntegrationPort: Int = 15151,
|
||||
) {
|
||||
@ -82,7 +83,7 @@ data class AppSettingsModel(
|
||||
|
||||
class AppSettingsStorage(
|
||||
settings: DataStore<MapConfig>,
|
||||
) : ConfigBaseSettings<AppSettingsModel>(settings,AppSettingsModel.ConfigLens) {
|
||||
) : ConfigBaseSettings<AppSettingsModel>(settings, AppSettingsModel.ConfigLens) {
|
||||
var theme = from(AppSettingsModel.theme)
|
||||
val threadCount = from(AppSettingsModel.threadCount)
|
||||
val dynamicPartCreation = from(AppSettingsModel.dynamicPartCreation)
|
||||
|
Loading…
x
Reference in New Issue
Block a user