OSDN Git Service

Add automatic upgrade checking.
[neighbornote/NeighborNote.git] / src / cx / fbn / nevernote / dialog / ConfigDialog.java
index 917a91c..472ad73 100644 (file)
@@ -126,6 +126,12 @@ public class ConfigDialog extends QDialog {
                        Global.setPdfPreview(true);\r
                else\r
                        Global.setPdfPreview(false);\r
+\r
+               if (appearancePage.getCheckForUpdates())\r
+                       Global.setCheckVersionUpgrade(true);\r
+               else\r
+                       Global.setCheckVersionUpgrade(false);\r
+\r
                \r
                if (appearancePage.getNewNoteWithTags())\r
                        Global.setNewNoteWithSelectedTags(true);\r
@@ -298,6 +304,7 @@ public class ConfigDialog extends QDialog {
                appearancePage.setVerifyDelete(Global.verifyDelete());\r
                appearancePage.setStartMinimized(Global.startMinimized());\r
                appearancePage.setPdfPreview(Global.pdfPreview());\r
+               appearancePage.setCheckForUpdates(Global.checkVersionUpgrade());\r
                appearancePage.setNewNoteWithTags(Global.newNoteWithSelectedTags());\r
                appearancePage.setShowSplashScreen(Global.isWindowVisible("SplashScreen"));\r
                appearancePage.setTagBehavior(Global.tagBehavior());\r