Export drin noch nicht komplett
Dieser Commit ist enthalten in:
@ -218,7 +218,30 @@ class AccountsTab(QWidget):
|
||||
|
||||
def on_export_clicked(self):
|
||||
"""Wird aufgerufen, wenn der Exportieren-Button geklickt wird."""
|
||||
self.export_requested.emit()
|
||||
# Prüfen ob ein Account ausgewählt ist
|
||||
selected_rows = self.accounts_table.selectionModel().selectedRows()
|
||||
if not selected_rows:
|
||||
title = "Kein Konto ausgewählt"
|
||||
text = "Bitte wählen Sie ein Konto zum Exportieren aus."
|
||||
if self.language_manager:
|
||||
title = self.language_manager.get_text(
|
||||
"accounts_tab.no_selection_title", title
|
||||
)
|
||||
text = self.language_manager.get_text(
|
||||
"accounts_tab.no_export_selection_text", text
|
||||
)
|
||||
from views.widgets.modern_message_box import show_warning
|
||||
show_warning(self, title, text)
|
||||
return
|
||||
|
||||
# Account-ID holen
|
||||
row = selected_rows[0].row()
|
||||
account_id = int(self.accounts_table.item(row, 0).text())
|
||||
|
||||
# ProfileExportController verwenden
|
||||
from controllers.profile_export_controller import ProfileExportController
|
||||
export_controller = ProfileExportController(self.db_manager)
|
||||
export_controller.export_account(self, account_id)
|
||||
|
||||
def update_session_status(self, account_id: str, status: dict):
|
||||
"""
|
||||
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren