@@ -15,6 +15,11 @@ class MenuManager {
1515 this.FileMenu.Add(" Exit" , (* ) => ExitApp ())
1616 this.FileMenu.SetIcon(" &Open Hotstrings...`tCtrl+O" ," shell32.dll" , 4 )
1717 this.FileMenu.SetIcon(" &Save Hotstrings`tCtrl+S" ," shell32.dll" , 259 )
18+
19+ this.SettingsMenu := Menu ()
20+ this.SettingsMenu.Add(" Increment First" , (* ) => context.SettingsManager.SetIncrementMode(" first" ))
21+ this.SettingsMenu.Add(" Increment Last" , (* ) => context.SettingsManager.SetIncrementMode(" last" ))
22+ this.FileMenu.Add()
1823
1924 this.HelpMenu := Menu ()
2025 this.HelpMenu.Add(" &Help`tF1" , this.MenuHandler)
@@ -23,8 +28,10 @@ class MenuManager {
2328 this.HelpMenu.SetIcon(" &Help`tF1" ," shell32.dll" , 24 )
2429 this.MenuBar := MenuBar()
2530 this.MenuBar.Add(" &File" , this.FileMenu)
31+ this.MenuBar.Add(" Settings" , this.SettingsMenu)
2632 this.MenuBar.Add(" Help" , this.HelpMenu)
2733 this.context.GuiMain.MenuBar := this.MenuBar
34+ this.UpdateState()
2835 }
2936
3037
@@ -33,6 +40,18 @@ class MenuManager {
3340 SetTimer () => ToolTip (), - 3000
3441 }
3542
43+ UpdateState () {
44+ settings := this.context.SettingsManager.settings
45+ if (settings[" increment" ][" mode" ] == " last" ) {
46+ this.SettingsMenu.Uncheck(" Increment First" )
47+ this.SettingsMenu.Check(" Increment Last" )
48+ } else {
49+ this.SettingsMenu.Check(" Increment First" )
50+ this.SettingsMenu.Uncheck(" Increment Last" )
51+ }
52+
53+ }
54+
3655 ControlDelayMenuHandler (ItemName, ItemPos, MenuInstance ) {
3756 Switch ItemName {
3857 case " Send It (Fastest)" :
0 commit comments