Fixed issue with profile not closed after change GTA folder
This commit is contained in:
parent
9272f0d3c1
commit
7662b374e5
3 changed files with 9 additions and 5 deletions
|
@ -602,6 +602,10 @@ void UserInterface::on_actionSelect_GTA_Folder_triggered()
|
||||||
QString GTAV_Folder_Temp = QFileDialog::getExistingDirectory(this, tr("Select GTA V Folder..."), StandardPaths::documentsLocation(), QFileDialog::ShowDirsOnly);
|
QString GTAV_Folder_Temp = QFileDialog::getExistingDirectory(this, tr("Select GTA V Folder..."), StandardPaths::documentsLocation(), QFileDialog::ShowDirsOnly);
|
||||||
if (QFileInfo(GTAV_Folder_Temp).exists())
|
if (QFileInfo(GTAV_Folder_Temp).exists())
|
||||||
{
|
{
|
||||||
|
if (profileOpen)
|
||||||
|
{
|
||||||
|
closeProfile_p();
|
||||||
|
}
|
||||||
GTAV_Folder = GTAV_Folder_Temp;
|
GTAV_Folder = GTAV_Folder_Temp;
|
||||||
QDir::setCurrent(GTAV_Folder);
|
QDir::setCurrent(GTAV_Folder);
|
||||||
AppEnv::setGameFolder(GTAV_Folder);
|
AppEnv::setGameFolder(GTAV_Folder);
|
||||||
|
|
2
config.h
2
config.h
|
@ -49,7 +49,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef GTA5SYNC_APPVER
|
#ifndef GTA5SYNC_APPVER
|
||||||
#define GTA5SYNC_APPVER "1.5.1"
|
#define GTA5SYNC_APPVER "1.5.2"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef GTA5SYNC_BUILDTYPE_REL
|
#ifdef GTA5SYNC_BUILDTYPE_REL
|
||||||
|
|
|
@ -7,8 +7,8 @@ CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "gta5view.exe.manifest"
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
|
||||||
VS_VERSION_INFO VERSIONINFO
|
VS_VERSION_INFO VERSIONINFO
|
||||||
FILEVERSION 1, 5, 1, 0
|
FILEVERSION 1, 5, 2, 0
|
||||||
PRODUCTVERSION 1, 5, 1, 0
|
PRODUCTVERSION 1, 5, 2, 0
|
||||||
FILEFLAGSMASK 0x3fL
|
FILEFLAGSMASK 0x3fL
|
||||||
FILEFLAGS 0
|
FILEFLAGS 0
|
||||||
FILEOS VOS_NT_WINDOWS32
|
FILEOS VOS_NT_WINDOWS32
|
||||||
|
@ -25,12 +25,12 @@ BEGIN
|
||||||
BEGIN
|
BEGIN
|
||||||
VALUE "CompanyName", "Syping"
|
VALUE "CompanyName", "Syping"
|
||||||
VALUE "FileDescription", "gta5view"
|
VALUE "FileDescription", "gta5view"
|
||||||
VALUE "FileVersion", "1.5.1"
|
VALUE "FileVersion", "1.5.2"
|
||||||
VALUE "InternalName", "gta5view"
|
VALUE "InternalName", "gta5view"
|
||||||
VALUE "LegalCopyright", "Copyright © 2016-2018 Syping"
|
VALUE "LegalCopyright", "Copyright © 2016-2018 Syping"
|
||||||
VALUE "OriginalFilename", "gta5view.exe"
|
VALUE "OriginalFilename", "gta5view.exe"
|
||||||
VALUE "ProductName", "gta5view"
|
VALUE "ProductName", "gta5view"
|
||||||
VALUE "ProductVersion", "1.5.1"
|
VALUE "ProductVersion", "1.5.2"
|
||||||
END
|
END
|
||||||
END
|
END
|
||||||
END
|
END
|
||||||
|
|
Loading…
Reference in a new issue