Skip to content

Commit

Permalink
Final Mac Integration Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
DecimalTurn committed Dec 17, 2017
1 parent 444333f commit dfbb508
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 27 deletions.
Binary file modified Pomodoro_Timer.xlsb
Binary file not shown.
10 changes: 6 additions & 4 deletions src/Pomodoro_Timer.xlsb/Main.bas
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@ Sub PomodoroSession()
BreakTime = Range("Break")
BreakTimeSec = Range("Break_sec")
AutoLaunch = True
If Range("Run_in_seperate_instance").Value = True And Reopen_decision = True And Not IsMac Then
MsgBox "To let you work with Excel while the timer is running, this file will now be reopen in a second instance of Excel." & vbNewLine & _
"Once, the file has been reopened, you will need to relaunch the timer."
Call OpenItSelfInAnotherInstance
If Not IsMac Then
If Range("Run_in_seperate_instance").Value = True And Reopen_decision = True Then
MsgBox "To let you work with Excel while the timer is Reopen_decisionrunning, this file will now be reopen in a second instance of Excel." & vbNewLine & _
"Once, the file has been reopened, you will need to relaunch the timer."
Call OpenItSelfInAnotherInstance
End If
End If
ThisWorkbook.Application.WindowState = xlMinimized
PomodoroTimer.Show vbModeless
Expand Down
18 changes: 0 additions & 18 deletions src/Pomodoro_Timer.xlsb/NamedRanges.csv

This file was deleted.

10 changes: 6 additions & 4 deletions src/Pomodoro_Timer.xlsb/PomodoroTimer.frm
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,18 @@ Private Sub UserForm_Initialize()
End If

If AutoLaunch Then
If Not IsMac Then
Call Launch_timer
Else
If IsMac Then
Call Launch_timer_mac
End If
End If

End Sub
Private Sub UserForm_Activate()
'Nothing
If AutoLaunch Then
If Not IsMac Then
Call Launch_timer
End If
End If
End Sub

Private Sub Launch_timer()
Expand Down
Binary file modified src/Pomodoro_Timer.xlsb/PomodoroTimer.frx
Binary file not shown.
4 changes: 3 additions & 1 deletion src/Pomodoro_Timer.xlsb/ThisWorkbook.sheet.cls
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Private Sub Workbook_Open()
If Sheets("Settings").Range("Shortcut").Value = True Then
If Sheets("Settings").Range("Shortcut").Value = True And Not IsMac Then
Call Shortcuts
End If
Call MacOptions
Expand All @@ -18,12 +18,14 @@ If IsMac Then
Range("Custom_position").EntireRow.Hidden = True
Range("Left_pos").EntireRow.Hidden = True
Range("Top_pos").EntireRow.Hidden = True
Range("Shortcut").EntireRow.Hidden = True
Else
Range("Reopen_Excel_after_x").EntireRow.Hidden = False
Range("Run_in_seperate_instance").EntireRow.Hidden = False
Range("Custom_position").EntireRow.Hidden = False
Range("Left_pos").EntireRow.Hidden = False
Range("Top_pos").EntireRow.Hidden = False
Range("Shortcut").EntireRow.Hidden = False
End If

End Sub
2 changes: 2 additions & 0 deletions src/Pomodoro_Timer.xlsb/Version.bas
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ Option Explicit
Public Function IsMac() As Boolean
#If Mac Then
IsMac = True
#Else
IsMac = False
#End If
End Function

Expand Down

0 comments on commit dfbb508

Please sign in to comment.