mirror of
https://github.com/arsenetar/dupeguru.git
synced 2025-03-09 21:24:36 +00:00
Disable hardlink feature on Windows.
This commit is contained in:
parent
806e3917e3
commit
78c2ae150d
@ -9,8 +9,8 @@
|
|||||||
from PyQt4.QtCore import Qt
|
from PyQt4.QtCore import Qt
|
||||||
from PyQt4.QtGui import QDialog, QVBoxLayout, QLabel, QCheckBox, QDialogButtonBox
|
from PyQt4.QtGui import QDialog, QVBoxLayout, QLabel, QCheckBox, QDialogButtonBox
|
||||||
|
|
||||||
|
from hscommon.plat import ISOSX, ISLINUX
|
||||||
from hscommon.trans import trget
|
from hscommon.trans import trget
|
||||||
from qtlib.util import horizontalWrap
|
|
||||||
|
|
||||||
tr = trget('ui')
|
tr = trget('ui')
|
||||||
|
|
||||||
@ -32,6 +32,9 @@ class DeletionOptions(QDialog):
|
|||||||
self.msgLabel = QLabel()
|
self.msgLabel = QLabel()
|
||||||
self.verticalLayout.addWidget(self.msgLabel)
|
self.verticalLayout.addWidget(self.msgLabel)
|
||||||
self.hardlinkCheckbox = QCheckBox(tr("Hardlink deleted files"))
|
self.hardlinkCheckbox = QCheckBox(tr("Hardlink deleted files"))
|
||||||
|
if not (ISOSX or ISLINUX):
|
||||||
|
self.hardlinkCheckbox.setEnabled(False)
|
||||||
|
self.hardlinkCheckbox.setText(self.hardlinkCheckbox.text() + tr(" (Mac OS X or Linux only)"))
|
||||||
self.verticalLayout.addWidget(self.hardlinkCheckbox)
|
self.verticalLayout.addWidget(self.hardlinkCheckbox)
|
||||||
text = tr("After having deleted a duplicate, place a hardlink targeting the reference file "
|
text = tr("After having deleted a duplicate, place a hardlink targeting the reference file "
|
||||||
"to replace the deleted file.")
|
"to replace the deleted file.")
|
||||||
|
@ -7,13 +7,10 @@
|
|||||||
# http://www.hardcoded.net/licenses/bsd_license
|
# http://www.hardcoded.net/licenses/bsd_license
|
||||||
|
|
||||||
from PyQt4.QtCore import Qt, QUrl, QRect
|
from PyQt4.QtCore import Qt, QUrl, QRect
|
||||||
from PyQt4.QtGui import (QMainWindow, QMenu, QLabel, QMessageBox, QInputDialog, QLineEdit,
|
from PyQt4.QtGui import (QMainWindow, QMenu, QLabel, QDesktopServices, QFileDialog, QMenuBar,
|
||||||
QDesktopServices, QFileDialog, QMenuBar, QWidget, QVBoxLayout, QAbstractItemView, QStatusBar,
|
QWidget, QVBoxLayout, QAbstractItemView, QStatusBar, QDialog, QAction, QPushButton, QCheckBox)
|
||||||
QDialog, QAction, QPushButton, QCheckBox)
|
|
||||||
|
|
||||||
from hscommon.plat import ISOSX, ISLINUX
|
|
||||||
from hscommon.trans import trget
|
from hscommon.trans import trget
|
||||||
from hscommon.util import nonone
|
|
||||||
from qtlib.util import moveToScreenCenter, horizontalWrap, createActions
|
from qtlib.util import moveToScreenCenter, horizontalWrap, createActions
|
||||||
from qtlib.search_edit import SearchEdit
|
from qtlib.search_edit import SearchEdit
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user