File tree Expand file tree Collapse file tree 4 files changed +18
-2
lines changed
Expand file tree Collapse file tree 4 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,14 @@ plugins {
55}
66
77group = ' me.kumo'
8- version = ' 0.0.3'
9-
8+ version = ' 0.0.4'
9+ jar {
10+ manifest {
11+ attributes ' SplashScreen-Image' : ' icons/aqua.png' ,
12+ ' Implementation-Title' : ' Pixiv Manager' ,
13+ ' Implementation-Version' : project. version
14+ }
15+ }
1016application {
1117 mainClass = ' me.kumo.PixivManager'
1218}
Original file line number Diff line number Diff line change @@ -15,6 +15,15 @@ public PixivMenu(PixivManager manager) {
1515 add (new JMenuItem ("Pixiv Token" ) {{
1616 addActionListener (e -> manager .askForToken (true ));
1717 }});
18+ add (new JMenuItem ("Gallery Path" ) {{
19+ addActionListener (e -> {
20+ String path = JOptionPane .showInputDialog (this , "Gallery Path" , LocalGallery .PATH );
21+ if (path != null ) {
22+ LocalGallery .setPath (path );
23+ PixivManager .preferences .put (PixivManager .GALLERY_PATH , path );
24+ }
25+ });
26+ }});
1827 add (new JCheckBoxMenuItem ("Socks Proxy" ) {{
1928 setSelected (PixivManager .getProxy () != null );
2029 addActionListener (e -> {
Original file line number Diff line number Diff line change @@ -101,6 +101,7 @@ public static Release[] getReleases() throws IOException {
101101
102102 private static void notifyLatest (Release latest ) {
103103 Version version = new Version (latest .tag_name );
104+ System .out .printf ("\t Current version = %s%n" , CURRENT );
104105 System .out .printf ("\t Latest version = %s%n" , version );
105106 int compare = CURRENT .compareTo (version );
106107 if (compare == 0 ) System .out .printf ("\t Current version %s is latest!%n" , CURRENT );
You can’t perform that action at this time.
0 commit comments