Fix: Didn't take into account the direction of slashes for Windows.
This commit is contained in:
parent
49faa9786d
commit
9301d8d07e
@ -67,11 +67,11 @@ namespace Tanshu.Accounts.Print
|
||||
|
||||
private static PlatformPrinter GetPrinter(string location)
|
||||
{
|
||||
if (location.StartsWith("smb://"))
|
||||
if (location.StartsWith("smb:"))
|
||||
return new PrinterWindows(location);
|
||||
else if (location.StartsWith("cups://"))
|
||||
else if (location.StartsWith("cups:"))
|
||||
return new PrinterLinux(location);
|
||||
else if (location.StartsWith("pdl://"))
|
||||
else if (location.StartsWith("pdl:"))
|
||||
return new PrinterSocket(location);
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user