Commit 7afcdb48 authored by Pierre-Antoine Rouby's avatar Pierre-Antoine Rouby
Browse files

configure, stricklers: Work on copy and apply when click ok.

Showing with 5 additions and 1 deletion
+5 -1
# -*- coding: utf-8 -*-
from copy import deepcopy
from config import Config
from View.ASubWindow import ASubWindow
from View.ListedSubWindow import ListedSubWindow
......@@ -110,7 +111,7 @@ class ConfigureWindow(ASubWindow, ListedSubWindow):
# Stricklers
table = self.find(QTableView, f"tableView_stricklers")
self._stricklers = self.conf.stricklers
self._stricklers = deepcopy(self.conf.stricklers)
self._stricklers_table = TableModel(
data = self._stricklers,
undo = self._undo_stack,
......@@ -180,6 +181,9 @@ class ConfigureWindow(ASubWindow, ListedSubWindow):
self.conf.backup_frequence = self.get_time_edit("timeEdit_backup_frequence")
self.conf.backup_max = self.get_spin_box("spinBox_backup_max")
# Stricklers
self.conf.stricklers = deepcopy(self._stricklers)
# Language
self.conf.lang = Config.languages()[self.get_combobox_text("comboBox_language")]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment