Add a user-facing option to enable or disable series view (#1748)
This commit is contained in:
+1
@@ -69,6 +69,7 @@ public class BookLoreUserTransformer {
|
||||
switch (settingKey) {
|
||||
case FILTER_SORTING_MODE -> userSettings.setFilterSortingMode(value);
|
||||
case METADATA_CENTER_VIEW_MODE -> userSettings.setMetadataCenterViewMode(value);
|
||||
case ENABLE_SERIES_VIEW -> userSettings.setEnableSeriesView(Boolean.parseBoolean(value));
|
||||
}
|
||||
}
|
||||
} catch (IllegalArgumentException e) {
|
||||
|
||||
@@ -52,6 +52,7 @@ public class BookLoreUser {
|
||||
public String filterSortingMode;
|
||||
public String metadataCenterViewMode;
|
||||
public boolean koReaderEnabled;
|
||||
public boolean enableSeriesView;
|
||||
public DashboardConfig dashboardConfig;
|
||||
|
||||
@Data
|
||||
|
||||
+2
-1
@@ -16,7 +16,8 @@ public enum UserSettingKey {
|
||||
DASHBOARD_CONFIG("dashboardConfig", true),
|
||||
|
||||
FILTER_SORTING_MODE("filterSortingMode", false),
|
||||
METADATA_CENTER_VIEW_MODE("metadataCenterViewMode", false);
|
||||
METADATA_CENTER_VIEW_MODE("metadataCenterViewMode", false),
|
||||
ENABLE_SERIES_VIEW("enableSeriesView", false);
|
||||
|
||||
|
||||
private final String dbKey;
|
||||
|
||||
Reference in New Issue
Block a user