Some general updates

This commit is contained in:
WolverinDEV 2020-05-19 11:28:51 +02:00
parent a8694b6adf
commit 71014c52be
4 changed files with 7 additions and 7 deletions

2
github

@ -1 +1 @@
Subproject commit 30322f64162fd4805bc01542cc5cefbb9fe842a3
Subproject commit a1f980c623d33a448c9acf4a97f1aa795175dcb3

View File

@ -123,4 +123,4 @@ function deploy_client() {
#compile_scripts
#compile_native
package_client
deploy_client
#deploy_client

View File

@ -24,12 +24,12 @@ function handle_native_connect_request(url_string: string) {
return;
}
let connection = server_connections.active_connection_handler();
let connection = server_connections.active_connection();
if(connection.connected)
connection = server_connections.spawn_server_connection_handler();
connection = server_connections.spawn_server_connection();
handle_connect_request({
address: url.host,
address: url.host + ":" + (url.searchParams.has("port") ? url.searchParams.get("port") : "9987"),
password: {
value: url.password,
hashed: (url.searchParams.get("password_raw") || "0") == "0"

View File

@ -4,7 +4,7 @@ import * as mbar from "tc-shared/ui/frames/MenuBar";
import {Arguments, process_args} from "../shared/process-arguments";
import ipcRenderer = electron.ipcRenderer;
import {Icon} from "tc-shared/FileManager";
import {LocalIcon} from "tc-shared/file/Icons";
namespace native {
import ipcRenderer = electron.ipcRenderer;
let _item_index = 1;
@ -71,7 +71,7 @@ namespace native {
return !this._enabled;
}
icon(klass?: string | Promise<Icon> | Icon): string {
icon(klass?: string | Promise<LocalIcon> | LocalIcon): string {
if(typeof(klass) === "string") {
const buffer = class_to_image(klass);
if(buffer)