Skip to content

Commit c76bd10

Browse files
committed
Release 1.3.1
1 parent b949cca commit c76bd10

File tree

15 files changed

+18
-25
lines changed

15 files changed

+18
-25
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ assignees: ''
77

88
---
99

10-
- [ ] I checked the bug was not already reported [here](https://github.com/clementgre/PDF4Teachers/issues?q=is%3Aissue+milestone%3A%22Release+1.3.0%22+-label%3A%22user+Issue%22+-label%3Aduplicate+-label%3Adocumentation+-label%3Aenhancement+-label%3A%22good+first+issue%22+-label%3A%22help+wanted%22+-label%3Aquestion)
10+
- [ ] I checked the bug was not already reported [here](https://github.com/clementgre/PDF4Teachers/issues?q=is%3Aissue+milestone%3A%22Release+1.3.1%22+-label%3A%22user+Issue%22+-label%3Aduplicate+-label%3Adocumentation+-label%3Aenhancement+-label%3A%22good+first+issue%22+-label%3A%22help+wanted%22+-label%3Aquestion)
1111
- [ ] I checked the bug is not an existing user issue [here](https://github.com/clementgre/PDF4Teachers/issues?q=is%3Aissue+label%3A%22user+issue%22+)
1212

1313
**Describe the bug**

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ assignees: ''
77

88
---
99

10-
- [ ] I checked this feature was not already requested [here](https://github.com/clementgre/PDF4Teachers/issues?q=is%3Aissue+milestone%3A%22Release+1.3.0%22+label%3A%22enhancement%22+)
10+
- [ ] I checked this feature was not already requested [here](https://github.com/clementgre/PDF4Teachers/issues?q=is%3Aissue+milestone%3A%22Release+1.3.1%22+label%3A%22enhancement%22+)
1111

1212
**Is your feature request related to a problem? Please describe.**
1313
Ex. I'm always frustrated when [...]

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<a href="https://pdf4teachers.org">https://pdf4teachers.org</a>
1717
</h3>
1818
<p align="center">
19-
<a href="#presentation-en">Presentation</a> | <a href="#the-dependencies-130">The dependencies</a> | <a href="https://github.com/ClementGre/PDF4Teachers/tree/master/src/main/java/fr/clementgre/pdf4teachers">Code organization</a><br/>
19+
<a href="#presentation-en">Presentation</a> | <a href="#the-dependencies">The dependencies</a> | <a href="https://github.com/ClementGre/PDF4Teachers/tree/master/src/main/java/fr/clementgre/pdf4teachers">Code organization</a><br/>
2020
PDF editing software in large quantities designed for teachers.<br/><br/>
2121
<img src="https://raw.githubusercontent.com/ClementGre/PDF4Teachers/master/images/banner-flat.png" alt="Logo" width="690"/><br/>
2222
</p>
@@ -26,9 +26,9 @@
2626
[![License](https://img.shields.io/badge/Licence-Apache%20Licence%202.0-red?label=Read%20license)](LICENSE)
2727
[![Release](https://img.shields.io/github/v/release/clementgre/PDF4Teachers?label=Download%20version)](https://github.com/clementgre/PDF4Teachers/releases/latest)
2828
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
29-
[![GitHub labels](https://img.shields.io/github/issues/clementgre/PDF4Teachers/bug?color=d73a4a)](https://github.com/clementgre/PDF4Teachers/issues?q=is%3Aissue+milestone%3A%22Release+1.3.0%22+-label%3A%22user+Issue%22+-label%3Aduplicate+-label%3Adocumentation+-label%3Aenhancement+-label%3A%22good+first+issue%22+-label%3A%22help+wanted%22+-label%3Aquestion)
29+
[![GitHub labels](https://img.shields.io/github/issues/clementgre/PDF4Teachers/bug?color=d73a4a)](https://github.com/clementgre/PDF4Teachers/issues?q=is%3Aissue+milestone%3A%22Release+1.3.1%22+-label%3A%22user+Issue%22+-label%3Aduplicate+-label%3Adocumentation+-label%3Aenhancement+-label%3A%22good+first+issue%22+-label%3A%22help+wanted%22+-label%3Aquestion)
3030
[![GitHub labels](https://img.shields.io/github/issues/clementgre/PDF4Teachers/user%20issue?label=user%20issues&color=36ba1b)](https://github.com/clementgre/PDF4Teachers/issues?q=is%3Aissue+label%3A%22user+issue%22+)
31-
[![GitHub labels](https://img.shields.io/github/issues/clementgre/PDF4Teachers/enhancement?color=a2eeef)](https://github.com/clementgre/PDF4Teachers/issues?q=is%3Aissue+milestone%3A%22Release+1.3.0%22+label%3A%22enhancement%22+)
31+
[![GitHub labels](https://img.shields.io/github/issues/clementgre/PDF4Teachers/enhancement?color=a2eeef)](https://github.com/clementgre/PDF4Teachers/issues?q=is%3Aissue+milestone%3A%22Release+1.3.1%22+label%3A%22enhancement%22+)
3232

3333
# Presentation [EN]
3434

@@ -82,7 +82,7 @@ local, les seuls accès réseaux de l'application concernent la vérification de
8282

8383
# The dependencies
8484

85-
The application was developed with JavaFX framework, with Java SE 16 (1.3.0).
85+
The application was developed with JavaFX framework, in Java SE 17 (1.3.1).
8686

8787
### Java dependencies
8888

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2021. Clément Grennerat
2+
* Copyright (c) 2019. Clément Grennerat
33
* All rights reserved. You must refer to the licence Apache 2.
44
*/
55

distribution/macosx/Contents/Info.plist

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616

1717
<!-- Version -->
1818
<key>CFBundleVersion</key>
19-
<string>1.3.0</string>
19+
<string>1.3.1</string>
2020
<key>CFBundleShortVersionString</key>
21-
<string>1.3.0</string>
21+
<string>1.3.1</string>
2222
<key>CFBundleGetInfoString</key>
23-
<string>1.3.0</string>
23+
<string>1.3.1</string>
2424

2525
<!-- Other -->
2626
<key>CFBundlePackageType</key>

src/main/java/fr/clementgre/pdf4teachers/Main.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ public class Main extends Application {
5454
// Version IDs : 0: <=1.2.1 | 1: 1.3.0-pre1 | 2: 1.3.0 | 3: 1.3.1
5555

5656
public static final int VERSION_ID = 3;
57-
public static final String VERSION = "1.3.1-sn1";
57+
public static final String VERSION = "1.3.1";
5858
public static final boolean IS_PRE_RELEASE = false;
59-
public static final boolean DEBUG = true;
59+
public static final boolean DEBUG = false;
6060
public static final boolean COPY_CONSOLE = true;
6161
public static final boolean COPY_TRANSLATIONS_AT_START = false;
62-
public static final boolean TRANSLATIONS_IN_CODE = true;
62+
public static final boolean TRANSLATIONS_IN_CODE = false;
6363

6464
public static boolean firstLaunch;
6565

src/main/java/fr/clementgre/pdf4teachers/components/SmoothishScrollpane.java

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ public class SmoothishScrollpane extends ScrollPane {
2525
private boolean hasScrollStartEndEvents = false;
2626

2727
/**
28-
* @param content
29-
* Item to be wrapped in the scrollpane.
28+
* @param content Item to be wrapped in the scrollpane.
3029
*/
3130
public SmoothishScrollpane(Node content) {
3231
// ease-of-access for inner class
@@ -36,12 +35,8 @@ public SmoothishScrollpane(Node content) {
3635
setContent(wrapper);
3736
// add scroll handling to wrapper
3837

39-
wrapper.setOnScrollStarted(event -> {
40-
hasScrollStartEndEvents = true;
41-
});
42-
wrapper.setOnScrollFinished(event -> {
43-
hasScrollStartEndEvents = false;
44-
});
38+
wrapper.setOnScrollStarted(event -> hasScrollStartEndEvents = true);
39+
wrapper.setOnScrollFinished(event -> hasScrollStartEndEvents = false);
4540

4641
wrapper.setOnScroll(new EventHandler<>() {
4742
private SmoothishTransition transition;

src/main/java/fr/clementgre/pdf4teachers/document/editions/Edition.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ public static HashMap<File, File> getEditFilesWithSameName(File originFile){
364364

365365
HashMap<File, File> files = new HashMap<>();
366366

367-
for(File editFile : new File(Main.dataFolder + "editions" + File.separator).listFiles()){
367+
for(File editFile : Objects.requireNonNull(new File(Main.dataFolder + "editions" + File.separator).listFiles())){
368368

369369
File file = getFileFromEdit(editFile);
370370

@@ -390,7 +390,7 @@ public static void clearEdit(File file, boolean confirm){
390390
}
391391

392392
public void clearEdit(boolean confirm){
393-
if(!confirm || new ConfirmAlert(true, TR.tr("dialog.confirmation.clearEdit.header")).execute()){
393+
if(!confirm || new ConfirmAlert(false, TR.tr("dialog.confirmation.clearEdit.header")).execute()){
394394
MainWindow.mainScreen.setSelected(null);
395395
for(PageRenderer page : document.getPages()){
396396
page.clearElements();

src/main/java/fr/clementgre/pdf4teachers/interfaces/windows/UpdateWindow.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,6 @@ public void generateDescription(VBox root){
253253
if(line.startsWith("##")){
254254
Label label = new Label(line.replace("##", ""));
255255
label.setWrapText(true);
256-
label.setMaxWidth(530);
257256
if(first) label.setStyle("-fx-padding: 0; -fx-font-size: 16; -fx-font-weight: 700;");
258257
else label.setStyle("-fx-padding: 10 0 0 0; -fx-font-size: 16; -fx-font-weight: 700;");
259258
root.getChildren().add(label);
@@ -264,7 +263,6 @@ public void generateDescription(VBox root){
264263
}else{
265264
Label label = new Label(line.replace("##", ""));
266265
label.setWrapText(true);
267-
label.setMaxWidth(530);
268266

269267
if(line.startsWith("- ")){
270268
label.setStyle("-fx-padding: 0 0 0 30;");
-1.27 KB
Binary file not shown.

0 commit comments

Comments
 (0)