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;
|
||||
|
||||
static string settingsFilename = "";
|
||||
|
||||
void Settings::Save()
|
||||
@@ -387,11 +388,12 @@ void Settings::Load()
|
||||
|
||||
}
|
||||
|
||||
|
||||
void Settings::Lock()
|
||||
{
|
||||
application.first_instance = false;
|
||||
|
||||
std::string lockfile = SystemToolkit::full_filename(SystemToolkit::settings_path(), "lock");
|
||||
application.fresh_start = false;
|
||||
|
||||
FILE *file = fopen(lockfile.c_str(), "r");
|
||||
int l = 0;
|
||||
@@ -406,8 +408,8 @@ void Settings::Lock()
|
||||
if (file) {
|
||||
fprintf(file, "1");
|
||||
fclose(file);
|
||||
application.first_instance = true;
|
||||
}
|
||||
application.fresh_start = true;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -434,3 +436,4 @@ void Settings::Check()
|
||||
|
||||
xmlDoc.Print();
|
||||
}
|
||||
|
||||
|
||||
@@ -162,7 +162,7 @@ struct SourceConfig
|
||||
struct Application
|
||||
{
|
||||
// instance check
|
||||
bool first_instance;
|
||||
bool fresh_start;
|
||||
|
||||
// Verification
|
||||
std::string name;
|
||||
@@ -204,7 +204,7 @@ struct Application
|
||||
History recentFolders;
|
||||
History recentImport;
|
||||
|
||||
Application() : first_instance(false), name(APP_NAME){
|
||||
Application() : fresh_start(false), name(APP_NAME){
|
||||
scale = 1.f;
|
||||
accent_color = 0;
|
||||
pannel_stick = false;
|
||||
|
||||
Reference in New Issue
Block a user