diff --git a/.gitignore b/.gitignore index 6f50db9..0b823ea 100644 --- a/.gitignore +++ b/.gitignore @@ -52,3 +52,4 @@ compile_commands.json *creator.user* /build/* +.vscode \ No newline at end of file diff --git a/qml/main.qml b/qml/main.qml index ffe603f..77bb93d 100644 --- a/qml/main.qml +++ b/qml/main.qml @@ -72,10 +72,7 @@ Meui.Window { source: settings.viewMethod === 0 ? listSource : gridSource onClicked: { - if (settings.viewMethod === 1) - settings.viewMethod = 0 - else - settings.viewMethod = 1 + settings.viewMethod ^= 1 // reverse settings.viewMethod } } }