mirror of
				https://github.com/arsenetar/dupeguru.git
				synced 2025-09-11 17:58:17 +00:00 
			
		
		
		
	Updated the dgme Qt pref dialog to include the custom command field and added cxFreeze workaround in dgme qt start script.
This commit is contained in:
		
							parent
							
								
									5c0799e82b
								
							
						
					
					
						commit
						ef090a5dc5
					
				| @ -57,6 +57,7 @@ class PreferencesDialog(QDialog, Ui_PreferencesDialog): | ||||
|         setchecked(self.useRegexpBox, prefs.use_regexp) | ||||
|         setchecked(self.removeEmptyFoldersBox, prefs.remove_empty_folders) | ||||
|         self.copyMoveDestinationComboBox.setCurrentIndex(prefs.destination_type) | ||||
|         self.customCommandEdit.setText(prefs.custom_command) | ||||
|      | ||||
|     def save(self): | ||||
|         prefs = self.app.prefs | ||||
| @ -75,6 +76,7 @@ class PreferencesDialog(QDialog, Ui_PreferencesDialog): | ||||
|         prefs.use_regexp = ischecked(self.useRegexpBox) | ||||
|         prefs.remove_empty_folders = ischecked(self.removeEmptyFoldersBox) | ||||
|         prefs.destination_type = self.copyMoveDestinationComboBox.currentIndex() | ||||
|         prefs.custom_command = unicode(self.customCommandEdit.text()) | ||||
|      | ||||
|     def resetToDefaults(self): | ||||
|         self.load(preferences.Preferences()) | ||||
|  | ||||
| @ -6,8 +6,8 @@ | ||||
|    <rect> | ||||
|     <x>0</x> | ||||
|     <y>0</y> | ||||
|     <width>449</width> | ||||
|     <height>361</height> | ||||
|     <width>325</width> | ||||
|     <height>360</height> | ||||
|    </rect> | ||||
|   </property> | ||||
|   <property name="windowTitle"> | ||||
| @ -19,9 +19,9 @@ | ||||
|   <property name="modal"> | ||||
|    <bool>true</bool> | ||||
|   </property> | ||||
|   <layout class="QVBoxLayout" name="verticalLayout" stretch="1,0"> | ||||
|   <layout class="QVBoxLayout" name="verticalLayout_2"> | ||||
|    <item> | ||||
|     <layout class="QVBoxLayout" name="verticalLayout_2" stretch="0,0,0,0,0,0,0,0,1"> | ||||
|     <layout class="QVBoxLayout" name="verticalLayout"> | ||||
|      <item> | ||||
|       <layout class="QHBoxLayout" name="horizontalLayout"> | ||||
|        <item> | ||||
| @ -358,6 +358,16 @@ | ||||
|        </item> | ||||
|       </layout> | ||||
|      </item> | ||||
|      <item> | ||||
|       <widget class="QLabel" name="label_7"> | ||||
|        <property name="text"> | ||||
|         <string>Custom Command (arguments: %d for dupe, %r for ref):</string> | ||||
|        </property> | ||||
|       </widget> | ||||
|      </item> | ||||
|      <item> | ||||
|       <widget class="QLineEdit" name="customCommandEdit"/> | ||||
|      </item> | ||||
|     </layout> | ||||
|    </item> | ||||
|    <item> | ||||
|  | ||||
| @ -14,6 +14,9 @@ import base.dg_rc | ||||
| 
 | ||||
| from app import DupeGuru | ||||
| 
 | ||||
| if sys.platform == 'win32': | ||||
|     import base.cxfreeze_fix | ||||
| 
 | ||||
| if __name__ == "__main__": | ||||
|     app = QApplication(sys.argv) | ||||
|     app.setWindowIcon(QIcon(QPixmap(":/logo_me"))) | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user