Skip to content

Commit

Permalink
network: Move code to network folder
Browse files Browse the repository at this point in the history
  • Loading branch information
kleidis committed Oct 23, 2024
1 parent c306d10 commit 8f114ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions init_instances.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ def main(self):
@property
def online(self):
if self._online is None:
from network_functions import Online # Import Online from network_functions
from network.network_functions import Online # Import Online from network_functions
self._online = Online()
return self._online

@property
def download(self):
from network_functions import DownloadWorker
from network.network_functions import DownloadWorker
return DownloadWorker() # Always return a new instance to reset the thread

@property
Expand Down
3 changes: 1 addition & 2 deletions network_functions.py → network/network_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,7 @@ def filter_emulator_data(self):
self.emulator_database = emulator_data # Store the data for later use throughout the codebase
return emulator_data


# Download Worker class to download the files
# Worker thread used for downlaoding emulators
class DownloadWorker(QObject):
progress = pyqtSignal(int)
finished = pyqtSignal()
Expand Down

0 comments on commit 8f114ca

Please sign in to comment.