mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-12 10:49:59 +01:00
minor rename
This commit is contained in:
@@ -12,6 +12,7 @@ using namespace tinyxml2;
|
|||||||
|
|
||||||
|
|
||||||
Settings::Application Settings::application;
|
Settings::Application Settings::application;
|
||||||
|
|
||||||
static string settingsFilename = "";
|
static string settingsFilename = "";
|
||||||
|
|
||||||
void Settings::Save()
|
void Settings::Save()
|
||||||
@@ -387,11 +388,12 @@ void Settings::Load()
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void Settings::Lock()
|
void Settings::Lock()
|
||||||
{
|
{
|
||||||
application.first_instance = false;
|
|
||||||
|
|
||||||
std::string lockfile = SystemToolkit::full_filename(SystemToolkit::settings_path(), "lock");
|
std::string lockfile = SystemToolkit::full_filename(SystemToolkit::settings_path(), "lock");
|
||||||
|
application.fresh_start = false;
|
||||||
|
|
||||||
FILE *file = fopen(lockfile.c_str(), "r");
|
FILE *file = fopen(lockfile.c_str(), "r");
|
||||||
int l = 0;
|
int l = 0;
|
||||||
@@ -406,8 +408,8 @@ void Settings::Lock()
|
|||||||
if (file) {
|
if (file) {
|
||||||
fprintf(file, "1");
|
fprintf(file, "1");
|
||||||
fclose(file);
|
fclose(file);
|
||||||
application.first_instance = true;
|
|
||||||
}
|
}
|
||||||
|
application.fresh_start = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -434,3 +436,4 @@ void Settings::Check()
|
|||||||
|
|
||||||
xmlDoc.Print();
|
xmlDoc.Print();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -162,7 +162,7 @@ struct SourceConfig
|
|||||||
struct Application
|
struct Application
|
||||||
{
|
{
|
||||||
// instance check
|
// instance check
|
||||||
bool first_instance;
|
bool fresh_start;
|
||||||
|
|
||||||
// Verification
|
// Verification
|
||||||
std::string name;
|
std::string name;
|
||||||
@@ -204,7 +204,7 @@ struct Application
|
|||||||
History recentFolders;
|
History recentFolders;
|
||||||
History recentImport;
|
History recentImport;
|
||||||
|
|
||||||
Application() : first_instance(false), name(APP_NAME){
|
Application() : fresh_start(false), name(APP_NAME){
|
||||||
scale = 1.f;
|
scale = 1.f;
|
||||||
accent_color = 0;
|
accent_color = 0;
|
||||||
pannel_stick = false;
|
pannel_stick = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user