Skip to content
Snippets Groups Projects
Commit ef9f9bf6 authored by Tobias Ullerich's avatar Tobias Ullerich
Browse files

#164 - Add option to override max pages

parent 404397ab
No related branches found
No related tags found
No related merge requests found
package de.tobias.playpad.project;
import de.thecodelabs.storage.settings.annotation.Key;
import de.thecodelabs.utils.application.ApplicationUtils;
import java.nio.file.Path;
public class ProjectSettings {
public static final int MAX_PAGES = 10;
public static final int MAX_PAGES;
static {
Object maxPages = ApplicationUtils.getApplication().getUserDefaults().getData("MAX_PAGES");
if (maxPages != null) {
MAX_PAGES = Integer.parseInt(maxPages.toString());
} else {
MAX_PAGES = 10;
}
}
public static final int MAX_COLUMNS = 15;
public static final int MAX_ROWS = 15;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment