diff --git a/settings.py b/settings.py
index 03ccbf9..223a518 100644
--- a/settings.py
+++ b/settings.py
@@ -109,6 +109,10 @@ class ComicTaggerSettings:
if self.unrar_exe_path != "":
self.save()
+ def reset( self ):
+ os.unlink( self.settings_file )
+ self.__init__()
+
def load(self):
self.config.read( self.settings_file )
diff --git a/settingswindow.py b/settingswindow.py
index 8d7a054..69fc489 100644
--- a/settingswindow.py
+++ b/settingswindow.py
@@ -79,6 +79,7 @@ class SettingsWindow(QtGui.QDialog):
self.btnBrowseRar.clicked.connect(self.selectRar)
self.btnBrowseUnrar.clicked.connect(self.selectUnrar)
self.btnClearCache.clicked.connect(self.clearCache)
+ self.btnResetSettings.clicked.connect(self.resetSettings)
def accept( self ):
@@ -110,6 +111,10 @@ class SettingsWindow(QtGui.QDialog):
ImageFetcher().clearCache()
ComicVineCacher( ).clearCache()
+ def resetSettings( self ):
+ self.settings.reset()
+ print "ATB reset setting!!"
+
def selectFile( self, control, name ):
dialog = QtGui.QFileDialog(self)
diff --git a/settingswindow.ui b/settingswindow.ui
index 71609e9..f350c41 100644
--- a/settingswindow.ui
+++ b/settingswindow.ui
@@ -6,8 +6,8 @@
0
0
- 753
- 440
+ 724
+ 355
@@ -38,8 +38,61 @@
-
+
-
+
+
+ Qt::Horizontal
+
+
+
+ -
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+ Reset Settings
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+ Revert to default settings
+
+
+ true
+
+
+
+
+
-
+
-
+
+
+
+ 0
+ 0
+
+
+
+ Clear Cache
+
+
+
-
@@ -56,28 +109,8 @@
- -
-
-
-
- 0
- 0
-
-
-
- Clear Cache
-
-
-
- -
-
-
- Qt::Horizontal
-
-
-
-