feat: agent-side global exclusions configuration matching Karen's Replicator Other Settings
This commit is contained in:
@@ -615,6 +615,27 @@ class OnEverDriveMainWindow(QMainWindow):
|
||||
notif_layout.addWidget(self.chk_notif_error)
|
||||
|
||||
layout.addWidget(card_notif)
|
||||
|
||||
# Global Exclusions Card (Karen parity)
|
||||
card_excl = QFrame()
|
||||
card_excl.setProperty("class", "card")
|
||||
excl_layout = QVBoxLayout(card_excl)
|
||||
excl_layout.setSpacing(10)
|
||||
|
||||
lbl_excl = QLabel("Exclusiones Globales de Archivos")
|
||||
lbl_excl.setFont(QFont("Segoe UI", 12, QFont.Weight.Bold))
|
||||
excl_layout.addWidget(lbl_excl)
|
||||
|
||||
self.chk_global_exclusions = QCheckBox("Omitir archivos de volcado, temporales y del sistema (pagefile.sys, Temp, Thumbs.db)")
|
||||
self.chk_global_exclusions.setChecked(self.config.enable_global_exclusions)
|
||||
self.chk_global_exclusions.stateChanged.connect(self._save_notif_settings)
|
||||
excl_layout.addWidget(self.chk_global_exclusions)
|
||||
|
||||
lbl_excl_desc = QLabel("Omitirá automáticamente archivos bloqueados del sistema (pagefile.sys, hiberfil.sys) y temporales (*.tmp, Thumbs.db, Desktop.ini) en todos los backups.")
|
||||
lbl_excl_desc.setStyleSheet("color: #64748B; font-size: 11px;")
|
||||
excl_layout.addWidget(lbl_excl_desc)
|
||||
|
||||
layout.addWidget(card_excl)
|
||||
layout.addStretch()
|
||||
|
||||
# --- TAB 4: HISTORIAL ---
|
||||
@@ -689,6 +710,7 @@ class OnEverDriveMainWindow(QMainWindow):
|
||||
self.config.notify_on_start = self.chk_notif_start.isChecked()
|
||||
self.config.notify_on_complete = self.chk_notif_complete.isChecked()
|
||||
self.config.notify_on_error = self.chk_notif_error.isChecked()
|
||||
self.config.enable_global_exclusions = self.chk_global_exclusions.isChecked()
|
||||
save_config(self.config)
|
||||
self._build_tray_menu()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user