Skip to content

Commit

Permalink
Config: Open in home directory if app is being run for the 1st time
Browse files Browse the repository at this point in the history
Previously, if user didn't have config files (which is (most of the
times) equivalent to running the app for the first time), then by
default next file that he wanted to open would be opened in the config
directory. This oneliner changes it, opening it in home directory by
default.
  • Loading branch information
tetektoza authored and AJenbo committed Oct 25, 2023
1 parent 4397400 commit 49cfe20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ void Config::loadConfiguration()
}

if (!theConfig.contains("LastFilePath")) {
theConfig.insert("LastFilePath", jsonFilePath);
theConfig.insert("LastFilePath", QStandardPaths::writableLocation(QStandardPaths::HomeLocation) + "/");
configurationModified = true;
}
if (!theConfig.contains("PaletteDefaultColor")) {
Expand Down

0 comments on commit 49cfe20

Please sign in to comment.