clan-app: Initial move to process based api calling instead of thread based

This commit is contained in:
Qubasa
2024-08-07 15:49:39 +02:00
parent b508018df1
commit 9138d72fad
4 changed files with 143 additions and 4 deletions

View File

@@ -54,6 +54,10 @@ class open_file(
op_key=op_key, data=selected_paths, status="success"
)
)
else:
self.returns(
SuccessDataClass(op_key=op_key, data=None, status="success")
)
except Exception as e:
print(f"Error getting selected files: {e}")
@@ -67,6 +71,10 @@ class open_file(
op_key=op_key, data=selected_path, status="success"
)
)
else:
self.returns(
SuccessDataClass(op_key=op_key, data=None, status="success")
)
except Exception as e:
print(f"Error getting selected directory: {e}")
@@ -80,6 +88,10 @@ class open_file(
op_key=op_key, data=selected_path, status="success"
)
)
else:
self.returns(
SuccessDataClass(op_key=op_key, data=None, status="success")
)
except Exception as e:
print(f"Error getting selected file: {e}")