src/eric7/Project/ProjectSourcesBrowser.py

branch
eric7
changeset 9246
f3120bfe82fb
parent 9221
bf71ee032bb4
child 9264
18a7312cfdb3
child 9413
80c06d472826
equal deleted inserted replaced
9245:6ee1705a1cb9 9246:f3120bfe82fb
1283 f 1283 f
1284 for f in self.project.getProjectFiles("SOURCES", normalized=True) 1284 for f in self.project.getProjectFiles("SOURCES", normalized=True)
1285 if f.startswith(dirName) 1285 if f.startswith(dirName)
1286 ] 1286 ]
1287 1287
1288 if ericApp().getObject("ViewManager").checkAllDirty(): 1288 vm = ericApp().getObject("ViewManager")
1289 files = [fn for fn in files if vm.checkFileDirty(fn)]
1290
1291 if files:
1289 dlg = BlackConfigurationDialog(withProject=True) 1292 dlg = BlackConfigurationDialog(withProject=True)
1290 if dlg.exec() == QDialog.DialogCode.Accepted: 1293 if dlg.exec() == QDialog.DialogCode.Accepted:
1291 config = dlg.getConfiguration() 1294 config = dlg.getConfiguration()
1292 1295
1293 formattingDialog = BlackFormattingDialog( 1296 formattingDialog = BlackFormattingDialog(
1294 config, files, project=self.project, action=action 1297 config, files, project=self.project, action=action
1295 ) 1298 )
1296 formattingDialog.exec() 1299 formattingDialog.exec()
1300 else:
1301 EricMessageBox.information(
1302 self,
1303 self.tr("Code Formatting"),
1304 self.tr("""There are no files left for reformatting."""),
1305 )

eric ide

mercurial