mirror of
https://github.com/rebelonion/Dantotsu.git
synced 2026-01-23 12:31:01 +00:00
fix: comment bar not visible (solution is so cursed)
This commit is contained in:
@@ -7,6 +7,7 @@ import ani.dantotsu.settings.saving.internal.Compat
|
||||
import ani.dantotsu.settings.saving.internal.Location
|
||||
import ani.dantotsu.settings.saving.internal.PreferencePackager
|
||||
import ani.dantotsu.snackString
|
||||
import ani.dantotsu.util.Logger
|
||||
import java.io.ByteArrayInputStream
|
||||
import java.io.ByteArrayOutputStream
|
||||
import java.io.ObjectInputStream
|
||||
@@ -374,6 +375,7 @@ object PrefManager {
|
||||
pref.edit().putString(key, serialized).apply()
|
||||
} catch (e: Exception) {
|
||||
snackString("Error serializing preference: ${e.message}")
|
||||
Logger.log(e)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -392,8 +394,7 @@ object PrefManager {
|
||||
default
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
snackString("Error deserializing preference: ${e.message}")
|
||||
e.printStackTrace()
|
||||
Logger.log(e)
|
||||
default
|
||||
}
|
||||
}
|
||||
|
||||
@@ -155,7 +155,7 @@ enum class PrefName(val data: Pref) { //TODO: Split this into multiple files
|
||||
DiscordStatus(Pref(Location.Irrelevant, String::class, "online")),
|
||||
DownloadsKeys(Pref(Location.Irrelevant, String::class, "")),
|
||||
NovelLastExtCheck(Pref(Location.Irrelevant, Long::class, 0L)),
|
||||
SomethingSpecial(Pref(Location.Irrelevant, Boolean::class, false)),
|
||||
ImageUrl(Pref(Location.Irrelevant, String::class, "")),
|
||||
AllowOpeningLinks(Pref(Location.Irrelevant, Boolean::class, false)),
|
||||
SearchStyle(Pref(Location.Irrelevant, Int::class, 0)),
|
||||
HasUpdatedPrefs(Pref(Location.Irrelevant, Boolean::class, false)),
|
||||
|
||||
Reference in New Issue
Block a user