Skip to content

Commit

Permalink
Updates for windows file compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
manuvarkey committed Jun 17, 2023
1 parent 25a2f5b commit 4eca9e7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions gelectrical/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ def on_open(self, button):

def on_open_project_selected(self, recent):
uri = recent.get_current_uri()
filename = misc.uri_to_file(uri)
filename = os.path.abspath(misc.uri_to_file(uri))
self.open_project(filename)
# Hide fileselector
self.builder.get_object('popup_open').hide()
Expand All @@ -274,7 +274,7 @@ def drag_data_received(self, widget, context, x, y, selection, target_type, time
data_str = selection.get_data().decode('utf-8')
uri = data_str.strip('\r\n\x00')
file_uri = uri.split()[0] # we may have more than one file dropped
filename = misc.get_file_path_from_dnd_dropped_uri(file_uri)
filename = os.path.abspath(misc.get_file_path_from_dnd_dropped_uri(file_uri))
if os.path.isfile(filename):
self.open_project(filename)
log.info('MainApp - drag_data_received - opnened file ' + filename)
Expand Down Expand Up @@ -1143,7 +1143,7 @@ def do_open(self, files, hint):
log.info('MainApp - do_open - Start')
self.activate()
if len(files) > 0:
filename = files[0].get_basename()
filename = os.path.abspath(files[0].get_basename())
self.window.open_project(filename)
log.info('MainApp - do_open - opened file ' + filename)
log.info('MainApp - do_open - End')
Expand All @@ -1154,7 +1154,7 @@ def do_command_line(self, command_line):
options = command_line.get_arguments()
self.activate()
if len(options) > 1:
filename = misc.uri_to_file(options[1])
filename = os.path.abspath(misc.uri_to_file(options[1]))
self.window.open_project(filename)
log.info('MainApp - do_command_line - opened file ' + filename)
log.info('MainApp - do_command_line - End')
Expand Down
4 changes: 2 additions & 2 deletions installer.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# These three must be integers
!define VERSIONMAJOR 1
!define VERSIONMINOR 0
!define VERSIONBUILD 12
!define VERSIONBUILD 13
# These will be displayed by the "Click here for support information" link in "Add/Remove Programs"
# It is possible to use "mailto:" links in here to open the email client
!define HELPURL "mailto:manuvarkey@gmail.com" # "Support Information" link
Expand All @@ -28,7 +28,7 @@ LicenseData "LICENSE"
# This will be in the installer/uninstaller's title bar
Name "${APPNAME}"
Icon "GElectrical.ico"
outFile "GElectrical-win64-1-RC-4-4.exe"
outFile "GElectrical-win64-1-RC-5-0.exe"

!include LogicLib.nsh

Expand Down

0 comments on commit 4eca9e7

Please sign in to comment.