mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-10-25 13:31:41 +00:00
Make IdentityManager a singleton
This commit is contained in:
1 parent
6c8349787a
commit
bb95c4db78
8 files changed
+37
-25
No files matched your search
@@ -35,11 +35,9 @@ void MainWindow::on_newHostBtn_clicked()
|
||||
QString hostname = popupmanager::getHostnameDialog(this);
|
||||
if (!hostname.isEmpty()) {
|
||||
|
||||
IdentityManager im = IdentityManager();
|
||||
NvPairingManager pm(hostname, im);
|
||||
NvPairingManager pm(hostname);
|
||||
|
||||
QString pin = pm.generatePinString();
|
||||
NvHTTP http(hostname, im);
|
||||
pm.pair(http.getServerInfo(), pin);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user