mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 07:27:29 -06:00
CuraApplication: Removing superflous check
Imagine that there was no "single_instance" in parsed_command_line, then the second half of the if-clause would automatically crash. Also we defined single_instance to be False, whenever not set. Therefore it is always there. Also since no issues ever happened here, let's remove this check.
This commit is contained in:
parent
00a77da9d4
commit
83d8c693bc
1 changed files with 1 additions and 1 deletions
|
@ -630,7 +630,7 @@ class CuraApplication(QtApplication):
|
|||
CuraApplication.addCommandLineOptions(parser)
|
||||
parsed_command_line = vars(parser.parse_args())
|
||||
|
||||
if "single_instance" in parsed_command_line and parsed_command_line["single_instance"]:
|
||||
if parsed_command_line["single_instance"]:
|
||||
Logger.log("i", "Checking for the presence of an ready running Cura instance.")
|
||||
single_instance_socket = QLocalSocket()
|
||||
Logger.log("d", "preStartUp(): full server name: " + single_instance_socket.fullServerName())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue