Skip to content

Commit

Permalink
Update version
Browse files Browse the repository at this point in the history
  • Loading branch information
vicr123 committed Jun 9, 2023
1 parent 20d8360 commit b1196d6
Show file tree
Hide file tree
Showing 12 changed files with 43 additions and 41 deletions.
4 changes: 2 additions & 2 deletions application/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ int main(int argc, char* argv[]) {
a.addLibraryTranslator(LIBTHEFRISBEE_TRANSLATOR);
a.addLibraryTranslator(LIBTHEFILE_TRANSLATOR);

a.setApplicationVersion("4.0.1");
a.setApplicationVersion("5.0");
a.setGenericName(QApplication::translate("main", "File Manager"));
a.setApplicationLicense(tApplication::Gpl3OrLater);
a.setCopyrightHolder("Victor Tran");
a.setCopyrightYear("2022");
a.setCopyrightYear("2023");
a.setOrganizationName("theSuite");
a.setApplicationUrl(tApplication::HelpContents, QUrl("https://help.vicr123.com/docs/thefile/intro"));
a.setApplicationUrl(tApplication::Sources, QUrl("http://github.com/vicr123/theFile"));
Expand Down
7 changes: 4 additions & 3 deletions application/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
struct MainWindowPrivate {
tCsdTools csd;
tSettings settings;
tSettings theFileSettings{"theCheeseboard", "theFile"};
};

MainWindow::MainWindow(QWidget* parent) :
Expand Down Expand Up @@ -98,10 +99,10 @@ MainWindow::MainWindow(QWidget* parent) :

ui->jobButtonLayout->addWidget(tJobManager::makeJobButton());

connect(&d->settings, &tSettings::settingChanged, this, [this](QString key, QVariant value) {
connect(&d->theFileSettings, &tSettings::settingChanged, this, [this](QString key, QVariant value) {
if (key == "View/HiddenFiles") ui->actionShowHiddenFiles->setChecked(value.toBool());
});
ui->actionShowHiddenFiles->setChecked(d->settings.value("View/HiddenFiles").toBool());
ui->actionShowHiddenFiles->setChecked(d->theFileSettings.value("View/HiddenFiles").toBool());

updateMenuActions();

Expand Down Expand Up @@ -215,7 +216,7 @@ void MainWindow::on_actionCloseTab_triggered() {
}

void MainWindow::on_actionShowHiddenFiles_triggered(bool checked) {
d->settings.setValue("View/HiddenFiles", checked);
d->theFileSettings.setValue("View/HiddenFiles", checked);
}

void MainWindow::on_actionGo_triggered() {
Expand Down
10 changes: 5 additions & 5 deletions application/translations/de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ Total progress: %4 of %5</source>
</message>
<message>
<location filename="../mainwindow.ui" line="181"/>
<location filename="../mainwindow.cpp" line="231"/>
<location filename="../mainwindow.cpp" line="232"/>
<location filename="../../../build-thefile-Chroot_6-Debug/application/thefile_autogen/include/ui_mainwindow.h" line="291"/>
<source>Go</source>
<translation type="unfinished"></translation>
Expand Down Expand Up @@ -671,7 +671,7 @@ Total progress: %4 of %5</source>
</message>
<message>
<location filename="../mainwindow.ui" line="265"/>
<location filename="../mainwindow.cpp" line="189"/>
<location filename="../mainwindow.cpp" line="190"/>
<location filename="../../../build-thefile-Chroot_6-Debug/application/thefile_autogen/include/ui_mainwindow.h" line="319"/>
<source>New Folder</source>
<translation type="unfinished"></translation>
Expand All @@ -695,17 +695,17 @@ Total progress: %4 of %5</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="181"/>
<location filename="../mainwindow.cpp" line="182"/>
<source>Open</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="231"/>
<location filename="../mainwindow.cpp" line="232"/>
<source>Enter a location to go to</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="300"/>
<location filename="../mainwindow.cpp" line="301"/>
<source>General</source>
<translation type="unfinished"></translation>
</message>
Expand Down
10 changes: 5 additions & 5 deletions application/translations/en_US.ts
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ Total progress: %4 of %5</source>
</message>
<message>
<location filename="../mainwindow.ui" line="181"/>
<location filename="../mainwindow.cpp" line="231"/>
<location filename="../mainwindow.cpp" line="232"/>
<location filename="../../../build-thefile-Chroot_6-Debug/application/thefile_autogen/include/ui_mainwindow.h" line="291"/>
<source>Go</source>
<translation type="unfinished"></translation>
Expand Down Expand Up @@ -662,7 +662,7 @@ Total progress: %4 of %5</source>
</message>
<message>
<location filename="../mainwindow.ui" line="265"/>
<location filename="../mainwindow.cpp" line="189"/>
<location filename="../mainwindow.cpp" line="190"/>
<location filename="../../../build-thefile-Chroot_6-Debug/application/thefile_autogen/include/ui_mainwindow.h" line="319"/>
<source>New Folder</source>
<translation type="unfinished"></translation>
Expand All @@ -686,17 +686,17 @@ Total progress: %4 of %5</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="181"/>
<location filename="../mainwindow.cpp" line="182"/>
<source>Open</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="231"/>
<location filename="../mainwindow.cpp" line="232"/>
<source>Enter a location to go to</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="300"/>
<location filename="../mainwindow.cpp" line="301"/>
<source>General</source>
<translation type="unfinished"></translation>
</message>
Expand Down
10 changes: 5 additions & 5 deletions application/translations/he_IL.ts
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ Total progress: %4 of %5</source>
</message>
<message>
<location filename="../mainwindow.ui" line="181"/>
<location filename="../mainwindow.cpp" line="231"/>
<location filename="../mainwindow.cpp" line="232"/>
<location filename="../../../build-thefile-Chroot_6-Debug/application/thefile_autogen/include/ui_mainwindow.h" line="291"/>
<source>Go</source>
<translation>לך ל-</translation>
Expand Down Expand Up @@ -677,7 +677,7 @@ Total progress: %4 of %5</source>
</message>
<message>
<location filename="../mainwindow.ui" line="265"/>
<location filename="../mainwindow.cpp" line="189"/>
<location filename="../mainwindow.cpp" line="190"/>
<location filename="../../../build-thefile-Chroot_6-Debug/application/thefile_autogen/include/ui_mainwindow.h" line="319"/>
<source>New Folder</source>
<translation>תיקייה חדשה</translation>
Expand All @@ -701,17 +701,17 @@ Total progress: %4 of %5</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="181"/>
<location filename="../mainwindow.cpp" line="182"/>
<source>Open</source>
<translation>פתח</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="231"/>
<location filename="../mainwindow.cpp" line="232"/>
<source>Enter a location to go to</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="300"/>
<location filename="../mainwindow.cpp" line="301"/>
<source>General</source>
<translation type="unfinished"></translation>
</message>
Expand Down
10 changes: 5 additions & 5 deletions application/translations/tr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ Toplam ilerleme: %4 / %5</translation>
</message>
<message>
<location filename="../mainwindow.ui" line="181"/>
<location filename="../mainwindow.cpp" line="231"/>
<location filename="../mainwindow.cpp" line="232"/>
<location filename="../../../build-thefile-Chroot_6-Debug/application/thefile_autogen/include/ui_mainwindow.h" line="291"/>
<source>Go</source>
<translation>Git</translation>
Expand Down Expand Up @@ -680,7 +680,7 @@ Toplam ilerleme: %4 / %5</translation>
</message>
<message>
<location filename="../mainwindow.ui" line="265"/>
<location filename="../mainwindow.cpp" line="189"/>
<location filename="../mainwindow.cpp" line="190"/>
<location filename="../../../build-thefile-Chroot_6-Debug/application/thefile_autogen/include/ui_mainwindow.h" line="319"/>
<source>New Folder</source>
<translation>Yeni Klasör</translation>
Expand All @@ -704,17 +704,17 @@ Toplam ilerleme: %4 / %5</translation>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="181"/>
<location filename="../mainwindow.cpp" line="182"/>
<source>Open</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="231"/>
<location filename="../mainwindow.cpp" line="232"/>
<source>Enter a location to go to</source>
<translation>Gitmek için bir konum girin</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="300"/>
<location filename="../mainwindow.cpp" line="301"/>
<source>General</source>
<translation type="unfinished"></translation>
</message>
Expand Down
10 changes: 5 additions & 5 deletions application/translations/vi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ Tổng cộng: %4 tren %5</translation>
</message>
<message>
<location filename="../mainwindow.ui" line="181"/>
<location filename="../mainwindow.cpp" line="231"/>
<location filename="../mainwindow.cpp" line="232"/>
<location filename="../../../build-thefile-Chroot_6-Debug/application/thefile_autogen/include/ui_mainwindow.h" line="291"/>
<source>Go</source>
<translation>Đi</translation>
Expand Down Expand Up @@ -680,7 +680,7 @@ Tổng cộng: %4 tren %5</translation>
</message>
<message>
<location filename="../mainwindow.ui" line="265"/>
<location filename="../mainwindow.cpp" line="189"/>
<location filename="../mainwindow.cpp" line="190"/>
<location filename="../../../build-thefile-Chroot_6-Debug/application/thefile_autogen/include/ui_mainwindow.h" line="319"/>
<source>New Folder</source>
<translation>Thư mục mới</translation>
Expand All @@ -704,17 +704,17 @@ Tổng cộng: %4 tren %5</translation>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="181"/>
<location filename="../mainwindow.cpp" line="182"/>
<source>Open</source>
<translation>Mở</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="231"/>
<location filename="../mainwindow.cpp" line="232"/>
<source>Enter a location to go to</source>
<translation>Điền một vị trí để đi đến</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="300"/>
<location filename="../mainwindow.cpp" line="301"/>
<source>General</source>
<translation type="unfinished"></translation>
</message>
Expand Down
10 changes: 5 additions & 5 deletions application/translations/vi_VN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ Tổng tiến độ: %4 trên %5</translation>
</message>
<message>
<location filename="../mainwindow.ui" line="181"/>
<location filename="../mainwindow.cpp" line="231"/>
<location filename="../mainwindow.cpp" line="232"/>
<location filename="../../../build-thefile-Chroot_6-Debug/application/thefile_autogen/include/ui_mainwindow.h" line="291"/>
<source>Go</source>
<translation>Đi</translation>
Expand Down Expand Up @@ -680,7 +680,7 @@ Tổng tiến độ: %4 trên %5</translation>
</message>
<message>
<location filename="../mainwindow.ui" line="265"/>
<location filename="../mainwindow.cpp" line="189"/>
<location filename="../mainwindow.cpp" line="190"/>
<location filename="../../../build-thefile-Chroot_6-Debug/application/thefile_autogen/include/ui_mainwindow.h" line="319"/>
<source>New Folder</source>
<translation>Thư mục mới</translation>
Expand All @@ -704,17 +704,17 @@ Tổng tiến độ: %4 trên %5</translation>
<translation>Ctrl+,</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="181"/>
<location filename="../mainwindow.cpp" line="182"/>
<source>Open</source>
<translation>Mở</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="231"/>
<location filename="../mainwindow.cpp" line="232"/>
<source>Enter a location to go to</source>
<translation>Điền vào vị trí để đi đến</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="300"/>
<location filename="../mainwindow.cpp" line="301"/>
<source>General</source>
<translation>Chung</translation>
</message>
Expand Down
7 changes: 4 additions & 3 deletions libthefile/hiddenfilesproxymodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,13 @@
#include <tsettings.h>

struct HiddenFilesProxyModelPrivate {
tSettings settings;
tSettings settings{"theCheeseboard", "theFile"};
};

HiddenFilesProxyModel::HiddenFilesProxyModel(QObject* parent) : QSortFilterProxyModel(parent) {
HiddenFilesProxyModel::HiddenFilesProxyModel(QObject* parent) :
QSortFilterProxyModel(parent) {
d = new HiddenFilesProxyModelPrivate();
connect(&d->settings, &tSettings::settingChanged, this, [ = ](QString key, QVariant value) {
connect(&d->settings, &tSettings::settingChanged, this, [=](QString key, QVariant value) {
if (key == "View/HiddenFiles") invalidateFilter();
});
}
Expand Down
1 change: 0 additions & 1 deletion plugins/idevice/idevice.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#include "idevice.h"

#include <libimobiledevice-glue/utils.h>
#include <libimobiledevice/libimobiledevice.h>
#include <libimobiledevice/lockdown.h>
#include <plist/plist++.h>
Expand Down
3 changes: 2 additions & 1 deletion plugins/idevice/isoftwareupdatefile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ ISoftwareUpdateFile::ISoftwareUpdateFile(QString path, QObject* parent) :
auto plistData = file.readAll();
file.close();

plist_format_t plistFormat;
plist_t plistHandle;
if (plist_from_memory(plistData.data(), plistData.length(), &plistHandle) != PLIST_ERR_SUCCESS) return;
if (plist_from_memory(plistData.data(), plistData.length(), &plistHandle, &plistFormat) != PLIST_ERR_SUCCESS) return;

auto node = PList::Dictionary(plistHandle);
auto productVersionIterator = node.Find("ProductVersion");
Expand Down
2 changes: 1 addition & 1 deletion plugins/idevice/translations/en_US.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<context>
<name>IDevice</name>
<message>
<location filename="../idevice.cpp" line="32"/>
<location filename="../idevice.cpp" line="31"/>
<source>Unknown Device</source>
<translation type="unfinished"></translation>
</message>
Expand Down

0 comments on commit b1196d6

Please sign in to comment.