OSDN Git Service

ツールバーの「新規」ボタンを押した時にノートを新しいタブで開けるように変更した
[neighbornote/NeighborNote.git] / src / cx / fbn / nevernote / dialog / ConfigDialog.java
index 7a18037..db344b7 100644 (file)
@@ -148,6 +148,11 @@ public class ConfigDialog extends QDialog {
                        Global.setCheckVersionUpgrade(true);\r
                else\r
                        Global.setCheckVersionUpgrade(false);\r
+               \r
+               if (appearancePage.getNewAction())\r
+                       Global.setToolBarNewAction(true);\r
+               else\r
+                       Global.setToolBarNewAction(false);\r
 \r
                \r
                if (appearancePage.getNewNoteWithTags())\r
@@ -265,6 +270,13 @@ public class ConfigDialog extends QDialog {
                Global.rebuildFullTextNoteTarget(conn);\r
                Global.rebuildFullTextResourceTarget(conn);\r
                \r
+               // ツールバーの「新規」ボタンを押した時の動作を再設定\r
+       if (Global.toolBarNewAction()) {\r
+               parent.connectNewButtonSlot("noteAddNewTab()");\r
+       } else {\r
+               parent.connectNewButtonSlot("addNote()");\r
+       }\r
+               \r
                close();\r
        }\r
        \r
@@ -370,6 +382,7 @@ public class ConfigDialog extends QDialog {
                appearancePage.setIncludeTagChildren(Global.includeTagChildren());\r
                appearancePage.setDisplayRightToLeft(Global.displayRightToLeft());\r
                appearancePage.setStartupNotebook(Global.getStartupNotebook());\r
+               appearancePage.setNewAction(Global.toolBarNewAction());\r
                \r
 //             indexPage.setRegex(Global.getWordRegex());\r
                indexPage.setSleepInterval(Global.getIndexThreadSleepInterval());\r