on xenial help sign in
drop example
740fc55Michael Zanetti
qml/Components/WindowPositionStorage/WindowPositionStorage.qml−2
@@ -26,9 +26,7 @@ QtObject {
26 function openDB() {
26 function openDB() {
27 if (db !== null) return;
27 if (db !== null) return;
28
28
29− // db = LocalStorage.openDatabaseSync(identifier, version, description, estimated_size, callback(db))
30 db = LocalStorage.openDatabaseSync("unity8", "0.1", "", 100000);
29 db = LocalStorage.openDatabaseSync("unity8", "0.1", "", 100000);
31−
32 try {
30 try {
33 db.transaction(function(tx) {
31 db.transaction(function(tx) {
34 tx.executeSql('CREATE TABLE IF NOT EXISTS windowproperties(windowId TEXT UNIQUE, x INTEGER, y INTEGER, width INTEGER, height INTEGER)');
32 tx.executeSql('CREATE TABLE IF NOT EXISTS windowproperties(windowId TEXT UNIQUE, x INTEGER, y INTEGER, width INTEGER, height INTEGER)');