diff --git a/src/librer.py b/src/librer.py index 5a5bcd5..b835daf 100644 --- a/src/librer.py +++ b/src/librer.py @@ -387,7 +387,7 @@ def __init__(self,cwd): self.status_records_all.pack(fill='x',expand=0,side='left') self.status_records_all_configure = lambda x : self.status_records_all.configure(image = self.ico_records_all, text = x,compound='left') self.widget_tooltip(self.status_records_all,'All records in repository') - self.status_records_all.bind("", lambda event : self.unload_recod() ) + self.status_records_all.bind("", lambda event : self.unload_record() ) self.status_records_all.bind("", lambda event : self.unload_all_recods() ) self.status_record=Label(status_frame,image=self.ico_record,text='--',width=200,borderwidth=2,bg=self.bg_color,relief='groove',anchor='w') @@ -727,6 +727,8 @@ def help_cascade_post(): self_main_bind('', lambda event : self.find_next()) self_main_bind('', lambda event : self.find_prev()) + self_main_bind('', lambda event : self.unload_record()) + gc_collect() gc_enable() @@ -3935,7 +3937,7 @@ def record_info(self): @block_actions_processing @gui_block @logwrapper - def unload_recod(self,record=None): + def unload_record(self,record=None): if not record: record = self.current_record @@ -3959,7 +3961,7 @@ def unload_recod(self,record=None): @logwrapper def unload_all_recods(self): for record in librer_core.records: - self.unload_recod(record) + self.unload_record(record) @logwrapper def show_log(self):