Qt: Remove NTFS compression checkbox on Linux/Mac

This commit is contained in:
Stenzek 2024-01-23 23:32:35 +10:00 committed by Connor McLaughlin
parent c5a9ce6b56
commit c3afaae169
2 changed files with 17 additions and 11 deletions

View File

@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2002-2023 PCSX2 Dev Team // SPDX-FileCopyrightText: 2002-2024 PCSX2 Dev Team
// SPDX-License-Identifier: LGPL-3.0+ // SPDX-License-Identifier: LGPL-3.0+
#include "common/FileSystem.h" #include "common/FileSystem.h"
@ -36,7 +36,13 @@ MemoryCardCreateDialog::MemoryCardCreateDialog(QWidget* parent /* = nullptr */)
connect(m_ui.buttonBox->button(QDialogButtonBox::RestoreDefaults), &QPushButton::clicked, this, &MemoryCardCreateDialog::restoreDefaults); connect(m_ui.buttonBox->button(QDialogButtonBox::RestoreDefaults), &QPushButton::clicked, this, &MemoryCardCreateDialog::restoreDefaults);
#ifndef _WIN32 #ifndef _WIN32
m_ui.ntfsCompression->setEnabled(false); m_ui.ntfsCompressionLayout->removeWidget(m_ui.ntfsCompression);
safe_delete(m_ui.ntfsCompression);
m_ui.ntfsCompressionLayout->removeWidget(m_ui.ntfsCompressionLabel);
safe_delete(m_ui.ntfsCompressionLabel);
m_ui.mainLayout->removeItem(m_ui.ntfsCompressionLayout);
safe_delete(m_ui.ntfsCompressionLayout);
resize(600, 480);
#endif #endif
updateState(); updateState();

View File

@ -6,8 +6,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>593</width> <width>600</width>
<height>545</height> <height>535</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
@ -16,13 +16,13 @@
<property name="modal"> <property name="modal">
<bool>true</bool> <bool>true</bool>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout_9"> <layout class="QVBoxLayout" name="mainLayout">
<item> <item>
<layout class="QHBoxLayout" name="horizontalLayout" stretch="0,1"> <layout class="QHBoxLayout" name="horizontalLayout" stretch="0,1">
<property name="bottomMargin"> <property name="spacing">
<number>10</number> <number>10</number>
</property> </property>
<property name="spacing"> <property name="bottomMargin">
<number>10</number> <number>10</number>
</property> </property>
<item> <item>
@ -40,7 +40,7 @@
</size> </size>
</property> </property>
<property name="pixmap"> <property name="pixmap">
<pixmap resource="resources/resources.qrc">:/icons/black/svg/memcard-line.svg</pixmap> <pixmap resource="../resources/resources.qrc">:/icons/black/svg/memcard-line.svg</pixmap>
</property> </property>
<property name="alignment"> <property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set> <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
@ -227,7 +227,7 @@
</layout> </layout>
</item> </item>
<item> <item>
<layout class="QVBoxLayout" name="verticalLayout_8"> <layout class="QVBoxLayout" name="ntfsCompressionLayout">
<item> <item>
<widget class="QCheckBox" name="ntfsCompression"> <widget class="QCheckBox" name="ntfsCompression">
<property name="text"> <property name="text">
@ -239,7 +239,7 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QLabel" name="label_10"> <widget class="QLabel" name="ntfsCompressionLabel">
<property name="text"> <property name="text">
<string>NTFS compression is built-in, fast, and completely reliable. Typically compresses Memory Cards (highly recommended).</string> <string>NTFS compression is built-in, fast, and completely reliable. Typically compresses Memory Cards (highly recommended).</string>
</property> </property>