Skip to content

Commit

Permalink
Move the selection-parser style file to a new name, new place.
Browse files Browse the repository at this point in the history
Respect the convention:
.mastodon > plugins > plugin-name > style-file.yaml
  • Loading branch information
tinevez committed Aug 30, 2023
1 parent cc23d80 commit 602fb20
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
public class SelectionCreatorSettingsManager extends AbstractStyleManagerYaml< SelectionCreatorSettingsManager, SelectionCreatorSettings >
{

private static final String EXPRESSION_FILE = System.getProperty( "user.home" ) + "/.mastodon/selectioncreatorexpressions.yaml";
private static final String EXPRESSION_FILE = System.getProperty( "user.home" ) + "/.mastodon/plugins/selection-creator/selection-creator-expressions.yaml";
private static final String LEGACY_EXPRESSION_FILE = System.getProperty( "user.home" ) + "/.mastodon/selectioncreatorexpressions.yaml";

public SelectionCreatorSettingsManager()
{
Expand All @@ -53,6 +54,7 @@ public SelectionCreatorSettingsManager( final boolean loadStyles )
public void loadStyles()
{
loadStyles( EXPRESSION_FILE );
handleLegacyFile( LEGACY_EXPRESSION_FILE );
}

@Override
Expand Down

0 comments on commit 602fb20

Please sign in to comment.