Skip to content

Commit

Permalink
Fixed cpu usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Faugus authored Dec 19, 2024
1 parent d2b81b4 commit aa98129
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions faugus-run.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ def components_run(self):
bufsize=1
)

GLib.io_add_watch(self.process.stdout, GLib.IO_IN, self.on_output_components)
GLib.io_add_watch(self.process.stderr, GLib.IO_IN, self.on_output_components)
#GLib.io_add_watch(self.process.stdout, GLib.IO_IN, self.on_output_components)
#GLib.io_add_watch(self.process.stderr, GLib.IO_IN, self.on_output_components)
self.process.wait()

def on_output_components(self, source, condition):
Expand Down Expand Up @@ -261,7 +261,6 @@ def show_warning_dialog(self):
self.warning_dialog.set_default_size(280, -1)
self.warning_dialog.set_icon_from_file(faugus_png)

print(faugus_session)
if faugus_session:
self.warning_dialog.fullscreen()

Expand Down

0 comments on commit aa98129

Please sign in to comment.