mirror of
https://github.com/brunodev85/winlator.git
synced 2024-11-23 05:09:38 +00:00
commit
eed37d6804
@ -36,9 +36,10 @@ public class Shortcut {
|
||||
|
||||
int index;
|
||||
for (String line : FileUtils.readLines(file)) {
|
||||
index = line.indexOf("[");
|
||||
if (index != -1) {
|
||||
section = line.substring(index+1, line.indexOf("]", index));
|
||||
line = line.trim();
|
||||
if (line.isEmpty() || line.startsWith("#")) continue; // Skip empty lines and comments
|
||||
if (line.startsWith("[")) {
|
||||
section = line.substring(1, line.indexOf("]"));
|
||||
}
|
||||
else {
|
||||
index = line.indexOf("=");
|
||||
|
Loading…
Reference in New Issue
Block a user