Skip to content

Commit

Permalink
fix #7
Browse files Browse the repository at this point in the history
  • Loading branch information
wish13yt committed Jan 15, 2025
1 parent 223aad0 commit f3ecda0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/freakybrowse.py
Original file line number Diff line number Diff line change
Expand Up @@ -1144,7 +1144,7 @@ def filepicker():
# I wonder what /j shortcut stuff
def shortcut_settings(self):
shortcut_dialog = QDialog(self)
shortcut_dialog.setWindowTitle("Shortcut stuff")
shortcut_dialog.setWindowTitle("Shortcuts")
shortcut_dialog.setFixedSize(400, 230)

layout = QVBoxLayout()
Expand All @@ -1170,6 +1170,11 @@ def shortcut_settings(self):
def create_shortcut():
url = url_input.text().strip()
name = name_input.text().strip()
shortcut_folder = "Shortcuts"

if os.path.exists(shortcut_folder + "/" + name + ".bat"):
QMessageBox.warning(self, "Issue creating shortcut", "Shortcut with the same name already exists.")
return

if not url:
QMessageBox.warning(self, "Warning", "vro. Put the url :sob:")
Expand All @@ -1183,7 +1188,6 @@ def create_shortcut():
QMessageBox.warning(self, "Warning", "URL must contain a '.' (e.g., .com, .net) !")
return

shortcut_folder = "Shortcuts"
if not os.path.exists(shortcut_folder):
os.makedirs(shortcut_folder)

Expand Down

0 comments on commit f3ecda0

Please sign in to comment.