mirror of
https://github.com/FAUSheppy/homelab_gamevault
synced 2025-12-06 06:51:36 +01:00
fix: handle callback crash after view-switch
This commit is contained in:
@@ -10,6 +10,7 @@ import webbrowser
|
|||||||
import jinja_helper
|
import jinja_helper
|
||||||
import threading
|
import threading
|
||||||
import sys
|
import sys
|
||||||
|
import tkinter
|
||||||
|
|
||||||
class Software:
|
class Software:
|
||||||
|
|
||||||
@@ -188,10 +189,12 @@ class Software:
|
|||||||
shutil.copy(tmp, dest_dir)
|
shutil.copy(tmp, dest_dir)
|
||||||
|
|
||||||
#self.progress_bar_wrapper.set_text(text="")
|
#self.progress_bar_wrapper.set_text(text="")
|
||||||
|
try:
|
||||||
if self.run_button:
|
if self.run_button:
|
||||||
self.run_button.configure(state=tkinter.NORMAL)
|
self.run_button.configure(state=tkinter.NORMAL)
|
||||||
self.run_button.configure(fg_color="green")
|
self.run_button.configure(fg_color="green")
|
||||||
|
except tkinter.TclError:
|
||||||
|
print("INFO: No longer in installation view - no button to update")
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
'''Run the configured exe for this software'''
|
'''Run the configured exe for this software'''
|
||||||
|
|||||||
Reference in New Issue
Block a user