Commits

rablador committed efc0168

Temporarily fixed bug where missing setting in user's settings file results in QuickRef not leading. Proper fix in next update.

  • Participants
  • Parent commits 2682ffa

Comments (0)

Files changed (2)

 First release!
 
 Ver 1.05
-=======
+========
 
 Fixed bug that made alphabetical sorting not work as intended in all cases.
-Added setting to sort commands alphabetically or in the order that they are added to the settings file.
+Added setting to sort commands alphabetically or in the order that they are added to the settings file.
+
+Ver 1.06
+========
+
+Temporarily fixed bug where missing setting in user's settings file results in QuickRef not leading. Proper fix in next update.
   def __init__(self):
     self.command_list = None
     self.run_commands = None
-    self.hardcore_mode = False
-    self.sort_alphabetically = True
 
   def run(self):
     # If the command list has not be defined, run the plugin.
       try:
         self.command_list = []
         self.run_commands = []
-        self.hardcore_mode = settings['hardcore_mode']
-        self.sort_alphabetically = settings['sort_alphabetically']
+        self.hardcore_mode = settings['hardcore_mode'] if 'hardcore_mode' in settings else False
+        self.sort_alphabetically = settings['sort_alphabetically'] if 'sort_alphabetically' in settings else True
 
         for command in commands:
           # If there is a user added caption, display that in the list instead of the command.