mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
make sure theme.txt exists before attempting rename
This commit is contained in:
@@ -324,6 +324,9 @@ public class ThemeSelector extends JFrame implements Tool {
|
||||
* @return true if sketchbook/theme.txt does not match a built-in theme.
|
||||
*/
|
||||
private boolean userModifiedTheme() {
|
||||
if (!sketchbookFile.exists()) {
|
||||
return false;
|
||||
}
|
||||
String currentTheme = getCurrentTheme();
|
||||
for (ThemeSet set : sets) {
|
||||
if (set.getIndex(currentTheme) != -1) {
|
||||
|
||||
Reference in New Issue
Block a user