black
This commit is contained in:
1 parent
76c982536c
commit
5f25b04bc5
7 files changed
+86
-60
No files matched your search
+4
-5
@@ -158,7 +158,6 @@ class KaTrainGui(Screen, KaTrainBase):
|
||||
# update move tree
|
||||
self.controls.move_tree.current_node = self.game.current_node
|
||||
|
||||
|
||||
def update_state(
|
||||
self, redraw_board=False
|
||||
): # is called after every message and on receiving analyses and config changes
|
||||
@@ -327,10 +326,10 @@ class KaTrainGui(Screen, KaTrainBase):
|
||||
self.fileselect_popup.dismiss()
|
||||
path, file = os.path.split(files[0])
|
||||
settings_path = self.config("general/sgf_load")
|
||||
if path!=settings_path:
|
||||
self.log(f"Updating sgf load path default to {path}",OUTPUT_INFO)
|
||||
self._config['general']['sgf_load'] = path
|
||||
self.save_config('general')
|
||||
if path != settings_path:
|
||||
self.log(f"Updating sgf load path default to {path}", OUTPUT_INFO)
|
||||
self._config["general"]["sgf_load"] = path
|
||||
self.save_config("general")
|
||||
try:
|
||||
move_tree = KaTrainSGF.parse_file(files[0])
|
||||
except ParseError as e:
|
||||
|
||||
Reference in new issue
Block a user