1. jayven
  2. hotdebug

Commits

jayven  committed 15b14a6

Add a refresh button

  • Participants
  • Parent commits 4652ddb
  • Branches add_hotlog

Comments (0)

Files changed (2)

File debugger.py

View file
     def _hotlog_get(self, cr, uid, ids, field_name, arg, context=None):
         return dict(((id, hotlog_data) for id in norm_select(ids)))
 
+    def refresh_hotlog(self, cr, uid, ids, context=None):
+        # a empty function is enough for refresh
+        pass
+
     def clear_hotlog(self, cr, uid, ids, context=None):
         global hotlog_data
         hotlog_data = ''

File debugger.xml

View file
                         </page>
                         <page string="Hot Log">
                             <field nolabel="1" colspan="4" name="hotlog" />
-                            <button colspan="4" name="clear_hotlog" string="Clear Log" type="object" icon="gtk-go-forward" />
+                            <button name="refresh_hotlog" string="Refresh Log" type="object" icon="gtk-go-forward" />
+                            <button name="clear_hotlog" string="Clear Log" type="object" icon="gtk-go-forward" />
                         </page>
                         <page string="Help">
                             <field name="help" nolabel="1" colspan="4"/>