Skip to content

Commit

Permalink
Fix a bug that causes fails database saving (Windows-Setup)
Browse files Browse the repository at this point in the history
* Fix a bug that causes fails database saving
* Add version information to title of setup
  • Loading branch information
malisipi authored Feb 12, 2024
1 parent b3d909f commit 3ace42d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions windows-setup/setup.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
setup_version = "0.0.2";

import urllib.request;
from zipfile import ZipFile;
import tempfile;
Expand Down Expand Up @@ -69,6 +71,8 @@ def newflow_install():
os.rename("C:/Programs/NewFlow/__dbs_backup","C:/Programs/NewFlow/resources/app/dbs");
else:
os.rename("C:/Programs/NewFlow/resources/NewFlow-main","C:/Programs/NewFlow/resources/app");
if(not os.path.exists("C:/Programs/NewFlow/resources/app/dbs")):
os.mkdir("C:/Programs/NewFlow/resources/app/dbs");

update_state("Extracting yt-extractor...");
zip_archive = ZipFile(temp_dir + "ytextractor.zip");
Expand All @@ -84,7 +88,7 @@ def newflow_install():
show_progress(1,1,1);

setup_window = tkinter.Tk();
setup_window.title("NewFlow - Setup");
setup_window.title("NewFlow - Setup " + setup_version);
setup_window.resizable(False, False);
setup_window.geometry('400x200');
setup_window.iconbitmap(sys.executable);
Expand All @@ -100,4 +104,4 @@ def newflow_install():
license_button = ttk.Button(setup_window, text='Read License', command=read_license);
license_button.place(x=280, y=155, width=100, height=25);

setup_window.mainloop();
setup_window.mainloop();

0 comments on commit 3ace42d

Please sign in to comment.