KlipperScreen / KlipperScreen

GUI for Klipper
https://klipperscreen.github.io/KlipperScreen/
GNU Affero General Public License v3.0
1.02k stars 319 forks source link

[BUG] thumbnail is not refreshed after renaming a file #1303

Closed CIS94500 closed 3 months ago

CIS94500 commented 3 months ago

What happened?

the thumbnail is not automatically refreshed after renaming a file, you have to go back or click on the refresh button to have the thumbnail

What did you expect to happen instead?

the thumbnail is refreshed after renaming the file

How to reproduce this bug?

go to the print panel and rename a gcode

Additional information:

No response

Log output

2024-03-17 11:53:15,459 [functions.py:log_start()] - --------------------KlipperScreen Log Start--------------------
2024-03-17 11:53:15,459 [functions.py:log_start()] - KlipperScreen Version: v0.3.9-45-g8f75259
2024-03-17 11:53:15,459 [functions.py:log_start()] - Python version: 3.9
2024-03-17 11:53:15,533 [config.py:get_config_file_location()] - Passed config (-c): .
2024-03-17 11:53:15,533 [config.py:__init__()] - Config path location: /home/pi/printer_data/config/KlipperScreen.conf
2024-03-17 11:53:15,545 [config.py:log_config()] -  ===== Config File =====

...

2024-03-17 11:53:16,143 [printer.py:stop_tempstore_updates()] - Stopping tempstore
2024-03-17 11:53:16,144 [printer.py:reinit()] - Klipper version: v0.12.0-124-g09a78c31
2024-03-17 11:53:16,144 [printer.py:reinit()] - # Extruders: 1
2024-03-17 11:53:16,144 [printer.py:reinit()] - # Temperature devices: 3
2024-03-17 11:53:16,144 [printer.py:reinit()] - # Fans: 2
2024-03-17 11:53:16,144 [printer.py:reinit()] - # Output pins: 0
2024-03-17 11:53:16,144 [printer.py:reinit()] - # Leds: 0
2024-03-17 11:53:16,144 [KlippyRest.py:_do_request()] - Sending get to http://127.0.0.1:7125/printer/gcode/help
2024-03-17 11:53:16,179 [KlippyWebsocket.py:object_subscription()] - Sending printer.objects.subscribe
2024-03-17 11:53:16,179 [KlippyRest.py:_do_request()] - Sending get to http://127.0.0.1:7125/printer/objects/query?bed_mesh&configfile&display_status&extruder&fan&gcode_move&heater_bed&idle_timeout&pause_resume&print_stats&toolhead&virtual_sdcard&webhooks&motion_report&firmware_retraction&exclude_object&manual_probe&extruder&heater_bed&temperature_sensor Orange_pi&temperature_sensor Super_Racer&fan&heater_fan heatsink_fan&filament_switch_sensor filament_sensor
2024-03-17 11:53:16,455 [files.py:set_gcodes_path()] - Gcodes path: /home/pi/printer_data/gcodes
2024-03-17 11:53:16,455 [screen.py:init_klipper()] - Printer initialized
2024-03-17 11:53:16,455 [printer.py:change_state()] - Changing state from 'disconnected' to 'ready'
2024-03-17 11:53:16,455 [printer.py:change_state()] - Adding callback for state: ready
2024-03-17 11:53:16,456 [KlippyWebsocket.py:get_file_list()] - Sending server.files.list
2024-03-17 11:53:16,457 [screen.py:_load_panel()] - Loading panel: main_menu
2024-03-17 11:53:16,475 [main_menu.py:__init__()] - ### Making MainMenu
2024-03-17 11:53:16,477 [main_menu.py:add_device()] - Adding device: extruder
2024-03-17 11:53:16,480 [main_menu.py:add_device()] - Adding device: heater_bed
2024-03-17 11:53:16,482 [main_menu.py:add_device()] - Adding device: temperature_sensor Orange_pi
2024-03-17 11:53:16,483 [main_menu.py:add_device()] - Adding device: temperature_sensor Super_Racer
2024-03-17 11:53:16,491 [screen.py:attach_panel()] - Current panel hierarchy: main_menu
2024-03-17 11:53:16,492 [KlippyRest.py:_do_request()] - Sending get to http://127.0.0.1:7125/server/temperature_store
2024-03-17 11:53:16,591 [printer.py:init_temp_store()] - Temp store: ['heater_bed', 'temperature_sensor Orange_pi', 'temperature_sensor Super_Racer', 'extruder']
2024-03-17 11:53:16,592 [KlippyRest.py:_do_request()] - Sending get to http://127.0.0.1:7125/server/config
2024-03-17 11:53:16,615 [screen.py:init_tempstore()] - Temperature store size: 1200
2024-03-17 11:53:18,744 [screen.py:_load_panel()] - Loading panel: print
2024-03-17 11:53:18,749 [print.py:__init__()] - Thumbsize: 128.37209302325581
2024-03-17 11:53:18,750 [print.py:__init__()] - list
2024-03-17 11:53:18,752 [KlippyWebsocket.py:get_dir_info()] - Sending server.files.get_directory  gcodes
2024-03-17 11:53:18,756 [screen.py:attach_panel()] - Current panel hierarchy: main_menu > print
2024-03-17 11:53:18,858 [KlippyRest.py:_do_request()] - Sending get to http://127.0.0.1:7125/server/files/gcodes/.thumbs/pied ecran_0,10mm_4h10m_PLA-32x32.png
2024-03-17 11:53:18,902 [KlippyRest.py:_do_request()] - Sending get to http://127.0.0.1:7125/server/files/gcodes/.thumbs/rugby_Fond_0,20mm_4h51m_PLA-32x32.png
2024-03-17 11:53:18,926 [KlippyRest.py:_do_request()] - Sending get to http://127.0.0.1:7125/server/files/gcodes/.thumbs/TBox_PART1_0,12mm_2h35m_PLA-32x32.png
2024-03-17 11:53:18,948 [KlippyRest.py:_do_request()] - Sending get to http://127.0.0.1:7125/server/files/gcodes/.thumbs/TBox_PART2_0,10mm_45m_PLA-32x32.png
2024-03-17 11:53:18,970 [KlippyRest.py:_do_request()] - Sending get to http://127.0.0.1:7125/server/files/gcodes/.thumbs/OPI_Case_Top_v2_0,20mm_57m_PLA-32x32.png
2024-03-17 11:53:18,994 [KlippyRest.py:_do_request()] - Sending get to http://127.0.0.1:7125/server/files/gcodes/.thumbs/LOSC_0,20mm_4h53m_PLA-32x32.png
2024-03-17 11:53:19,017 [KlippyRest.py:_do_request()] - Sending get to http://127.0.0.1:7125/server/files/gcodes/.thumbs/Rugby-NathV2_0,12mm_11h14m_PLA-32x32.png
2024-03-17 11:53:19,040 [KlippyRest.py:_do_request()] - Sending get to http://127.0.0.1:7125/server/files/gcodes/.thumbs/fond ecran_0,20mm_2h36m_PLA-32x32.png
2024-03-17 11:53:19,062 [KlippyRest.py:_do_request()] - Sending get to http://127.0.0.1:7125/server/files/gcodes/.thumbs/OPI_Case_Bottom_V1_0,20mm_1h41m_PLA-32x32.png
2024-03-17 11:53:19,086 [KlippyRest.py:_do_request()] - Sending get to http://127.0.0.1:7125/server/files/gcodes/.thumbs/Corbeille_0,20mm_1h51m_PLA-32x32.png
2024-03-17 11:53:19,108 [KlippyRest.py:_do_request()] - Sending get to http://127.0.0.1:7125/server/files/gcodes/.thumbs/RV2_0,20mm_21m_PLA-32x32.png
2024-03-17 11:53:19,130 [KlippyRest.py:_do_request()] - Sending get to http://127.0.0.1:7125/server/files/gcodes/.thumbs/Boite_vis_6X_2h35m-32x32.png
2024-03-17 11:53:19,160 [KlippyRest.py:_do_request()] - Sending get to http://127.0.0.1:7125/server/files/gcodes/.thumbs/HDD_0,20mm_44m_PLA-32x32.png
2024-03-17 11:53:19,204 [KlippyRest.py:_do_request()] - Sending get to http://127.0.0.1:7125/server/files/gcodes/.thumbs/cache ecran_0,20mm_1h3m_PLA-32x32.png
2024-03-17 11:53:19,237 [print.py:load_files()] - Loaded in 0.389 seconds
2024-03-17 11:53:21,960 [print.py:show_rename()] - gcodes/HD_0,20mm.gcode
2024-03-17 11:53:21,968 [keyboard.py:__init__()] - Keyboard fr
2024-03-17 11:53:22,057 [screen.py:update_size()] - Size changed: 1024x600
2024-03-17 11:53:25,540 [screen.py:_send_action()] - server.files.move: {'source': 'gcodes/HD_0,20mm.gcode', 'dest': 'gcodes/HDD_0,20mm.gcode'}
2024-03-17 11:53:25,559 [print.py:_refresh_files()] - Refreshing
2024-03-17 11:53:25,564 [KlippyWebsocket.py:get_dir_info()] - Sending server.files.get_directory  gcodes
2024-03-17 11:53:25,691 [KlippyRest.py:_do_request()] - Sending get to http://127.0.0.1:7125/server/files/gcodes/.thumbs/pied ecran_0,10mm_4h10m_PLA-32x32.png
2024-03-17 11:53:25,717 [KlippyRest.py:_do_request()] - Sending get to http://127.0.0.1:7125/server/files/gcodes/.thumbs/rugby_Fond_0,20mm_4h51m_PLA-32x32.png
2024-03-17 11:53:25,747 [KlippyRest.py:_do_request()] - Sending get to http://127.0.0.1:7125/server/files/gcodes/.thumbs/TBox_PART1_0,12mm_2h35m_PLA-32x32.png
2024-03-17 11:53:25,776 [KlippyRest.py:_do_request()] - Sending get to http://127.0.0.1:7125/server/files/gcodes/.thumbs/TBox_PART2_0,10mm_45m_PLA-32x32.png
2024-03-17 11:53:25,811 [KlippyRest.py:_do_request()] - Sending get to http://127.0.0.1:7125/server/files/gcodes/.thumbs/OPI_Case_Top_v2_0,20mm_57m_PLA-32x32.png
2024-03-17 11:53:25,837 [KlippyRest.py:_do_request()] - Sending get to http://127.0.0.1:7125/server/files/gcodes/.thumbs/LOSC_0,20mm_4h53m_PLA-32x32.png
2024-03-17 11:53:25,866 [KlippyRest.py:_do_request()] - Sending get to http://127.0.0.1:7125/server/files/gcodes/.thumbs/Rugby-NathV2_0,12mm_11h14m_PLA-32x32.png
2024-03-17 11:53:25,889 [KlippyRest.py:_do_request()] - Sending get to http://127.0.0.1:7125/server/files/gcodes/.thumbs/fond ecran_0,20mm_2h36m_PLA-32x32.png
2024-03-17 11:53:25,913 [files.py:get_file_info()] - Metadata not found HDD_0,20mm.gcode
2024-03-17 11:53:25,921 [KlippyRest.py:_do_request()] - Sending get to http://127.0.0.1:7125/server/files/gcodes/.thumbs/OPI_Case_Bottom_V1_0,20mm_1h41m_PLA-32x32.png
2024-03-17 11:53:25,944 [KlippyRest.py:_do_request()] - Sending get to http://127.0.0.1:7125/server/files/gcodes/.thumbs/Corbeille_0,20mm_1h51m_PLA-32x32.png
2024-03-17 11:53:25,975 [KlippyRest.py:_do_request()] - Sending get to http://127.0.0.1:7125/server/files/gcodes/.thumbs/RV2_0,20mm_21m_PLA-32x32.png
2024-03-17 11:53:26,003 [KlippyRest.py:_do_request()] - Sending get to http://127.0.0.1:7125/server/files/gcodes/.thumbs/Boite_vis_6X_2h35m-32x32.png
2024-03-17 11:53:26,051 [KlippyRest.py:_do_request()] - Sending get to http://127.0.0.1:7125/server/files/gcodes/.thumbs/cache ecran_0,20mm_1h3m_PLA-32x32.png
2024-03-17 11:53:26,084 [print.py:load_files()] - Loaded in 0.406 seconds
2024-03-17 11:53:26,086 [print.py:_callback()] - move_file: {'modified': 1710322773.6261241, 'size': 617962, 'permissions': 'rw', 'path': 'HDD_0,20mm.gcode', 'root': 'gcodes'}
2024-03-17 11:53:26,086 [print.py:delete_from_list()] - found removing
2024-03-17 11:53:26,091 [print.py:add_item_from_callback()] - {'modified': 1710322773.6261241, 'size': 617962, 'permissions': 'rw', 'path': 'gcodes/HDD_0,20mm.gcode', 'root': 'gcodes', 'filename': 'HDD_0,20mm.gcode'}