forked from Mashiro_Sorata/ADV-Plugin
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
836 B
39 lines
836 B
import NERvGear 1.0 as NVG |
|
import NERvGear.Private 1.0 as NVGP |
|
|
|
import QtQuick 2.12 |
|
import QtQuick.Controls 2.12 |
|
|
|
import "./qml" |
|
|
|
NVG.Module { |
|
initialize: function () { |
|
console.log("Initializing ADV-Plugin."); |
|
Common.execute(Common.serverEXE, "-reboot"); |
|
return true; |
|
} |
|
|
|
ready: function () { |
|
console.log("ADV-Plugin is ready."); |
|
} |
|
|
|
cleanup: function () { |
|
console.log("Cleaning up ADV-Plugin."); |
|
Common.setWsocket(false); |
|
Common.execute(Common.serverEXE, "-close"); |
|
} |
|
|
|
Connections { |
|
target: Common |
|
onServerPreferencesOpen: { |
|
serverDialog.active = true; |
|
serverDialog.item.visible = true; |
|
} |
|
} |
|
|
|
Loader { |
|
id: serverDialog |
|
active: false |
|
sourceComponent: ServerPreferences { } |
|
} |
|
}
|
|
|