summaryrefslogtreecommitdiffstats
path: root/macosx/HBCore.m
diff options
context:
space:
mode:
authorritsuka <[email protected]>2015-01-28 07:06:42 +0000
committerritsuka <[email protected]>2015-01-28 07:06:42 +0000
commitd8eecdc928c9ef8f74ebb4241658f20c77fae47a (patch)
tree2e86e25e50c84a9b34589399f8cb5479921be9f2 /macosx/HBCore.m
parentf43b6191ff7fd037413500cd1902eb63a50c5e3a (diff)
MacGui: set the paused/working state immediately, so the pause toolbar item will be update correctly.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6824 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBCore.m')
-rw-r--r--macosx/HBCore.m2
1 files changed, 2 insertions, 0 deletions
diff --git a/macosx/HBCore.m b/macosx/HBCore.m
index dbbbb790e..8d12f33f7 100644
--- a/macosx/HBCore.m
+++ b/macosx/HBCore.m
@@ -398,12 +398,14 @@ static void hb_error_handler(const char *errmsg)
{
hb_pause(_hb_handle);
hb_system_sleep_allow(_hb_handle);
+ self.state = HBStatePaused;
}
- (void)resume
{
hb_resume(_hb_handle);
hb_system_sleep_prevent(_hb_handle);
+ self.state = HBStateWorking;
}
#pragma mark - State updates